View Source grisp_connect_api (grisp_connect v2.0.0)

Library module containing the jsonrpc API logic

Summary

Functions

Handles requests and notifications from grisp.io.

Functions

handle_msg(Msg)

-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.