View Source jarl_connection (jarl v1.1.0)
JSONRpc 2.0 Websocket connection
Summary
Functions
-spec disconnect(Conn :: pid()) -> ok.
-spec notify(Conn :: pid(), Method :: jarl:method(), Params :: map()) -> ok | {jarl_error, not_connected}.
-spec request(Conn :: pid(), Method :: jarl:method(), Params :: map(), ReqCtx :: term()) -> ok | {jarl_error, Reason :: jarl:jarl_error_reason()}.
-spec start_link(Handler :: pid(), Options :: jarl:start_options()) -> {ok, Conn :: pid()} | {error, Reason :: term()}.