Implements onClose, onError and onMessage functions of Transport providing corresponding _onClose, _onError and _onMessage properties to use for an implementation.
Closes the connection.
Callback for when the connection is closed for any reason.
Callback for when an error occurs.
Callback for when a message (request or response) is received over the connection.
Sends a JSON-RPC message (request or response).
Starts processing messages on the transport, including any connection steps that might need to be taken.