Readonly
idThe id of the connection.
Readonly
recoveredWhether the connection state was recovered after a temporary disconnection. In that case, any missed packets will be transmitted to the client, the data attribute and the rooms will be restored.
The current offset of the connection. Is used to sync the state of the server with the client after a reconnect.
The current offset of the connection. Is used to sync the state of the server with the client after a reconnect.
Disconnects the socket.
Whether or not to close the underlying connection.
Emits an event to the socket.
The event to emit.
The data to emit.
Emits an event to the socket and expects a return.
The event to emit.
The data to emit.
The timeout after which an error should be thrown.
The response from the connection.
Joins the given channel or channels.
The channel or channels to join.
Leaves the given channel or channels.
The channel or channels to join.
Adds a listener that will be fired when any event is received. The event name is passed as the first argument to the callback.
The listener to register.
Registers an on disconnect event listener.
The listener to register.
A socket.io websocket connection.