A response can either contain the Command::Response type in the result
field of the payload or an Error in the error field if the request
resulted in an error.
An incoming message read from the web socket can either be a response to a
previously submitted Request, identified by an identifier id, or an
Event emitted by the server.