RPCProcessor.send

Sends an RPC response or error. If id, result or error is not given on the response message, they won't be sent. However according to the RPC specification, id must be set in order for this to be a response object. Otherwise on success result must be set or on error error must be set. This also logs the error to stderr if it is given.

  1. void send(ResponseMessage res)
    class RPCProcessor
  2. void send(RequestMessage req)
  3. void send(JSONValue raw)

Parameters

res ResponseMessage

the response message to send.

Meta