Open a new socket connection. By default, the socket will auto connect when creating a new instance.
Executes an RPC method on the server. Returns a promise which resolves after it completes, or after a timeout occurs.
Get the options the socket is using.
Returns the current state of the socket.
Send emits a Method over the websocket, wrapped in a Packet to provide queueing and cancellation. It returns a promise which resolves with the reply payload from the Server.
Set the given options. Defaults and previous option values will be used if not supplied.
Generated using TypeDoc
Close gracefully shuts down the websocket.