class JsonRpc::DelayedResponse
- JsonRpc::DelayedResponse
- Reference
- Object
Overview
Like Response
, but delayed in that you can send a response to a request
some time after your Handler#handle_rpc_call
has returned.
Defined in:
json_rpc/delayed_response.crConstructors
Instance Method Summary
-
#client : Client
The underlying client
-
#error(code : Int32, message : String, data : JSON::Any | Nil = nil)
Sends an error response.
-
#id : IdType
The invocation id to respond to
-
#respond(failure : LocalCallError)
Sends an error response.
-
#respond(result)
Sends a successful response based on result.
-
#send(response : Response)
Sends a response to the backing
#client
.