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