The bound callback function for onClose
.
The bound callback function for onError
.
The bound callback function for onMessage
.
The bound callback function for onOpen
.
The queue of requests to be processed.
The bound callback function for wsSend
.
The bound callback function for onUpgrade
.
The node that owns this connection.
The websocket options.
The resume key, check Options.resumeKey for more information.
The url the connection connects to.
The websocket connection.
Closes the WebSocket connection.
The close code.
The data to be sent.
Configures the resuming for this connection.
The number of seconds after disconnecting before the session is closed anyways. This is useful for avoiding accidental leaks.
The key to send when resuming the session. Set to null
or leave unset to disable resuming.
Connects to the server.
Sends a message to the websocket.
The data to be sent to the websocket.
Generated using TypeDoc
The back-off queue.