View Source grisp_connect_api (grisp_connect v2.1.0)

Library module containing the jsonrpc API logic

Link to this section Summary

Functions

Handles requests and notifications from grisp.io.

Link to this section Functions

-spec handle_msg(Msg) ->
              ok |
              {reply, Result :: term(), ReqRef :: binary() | integer()} |
              {error,
               Code :: integer() | atom(),
               Message :: binary() | undefined,
               ErData :: term(),
               ReqRef :: binary() | integer()}
              when
                  Msg ::
                      {request,
                       Method :: jarl:method(),
                       Params :: map() | list(),
                       ReqRef :: binary() | integer()} |
                      {notification, jarl:method(), Params :: map() | list()}.

Handles requests and notifications from grisp.io.