Changes the authentication token currently associated with the socket.
Set this to null to indicate that no token should be associated with
the socket.
Gets the close code from the underlying WebSocket which is set when the
WebSocket is closed. If there is no close code available, this property
will be null.
Gets the close reason from the underlying WebSocket which is set when the
WebSocket is closed. If there is no close reason available, this property
will be null.
The interval in milliseconds between pings, as defined by the server upon
handshaking. This will initially be null, until the handshake is complete
and the value has been received from the server.
Cleans up local data about the socket and explicitly closes the connection
to the server ensuring that the client does not attempt to automatically
reconnect.
Invoke the specified procedure (RPC) on the corresponding server-side
socket. Any JSON-compatible auxiliary data may passed as data.
The returned Future is the response from the server.
Registers callback as an event handler for the raw event - which is
triggered whenever the server socket calls socket.send(...). The object
produced will have a 'message' property.
Registers callback as a handler for the server-side transmitted remote
procedure call (RPC) of name. This is essentially the reverse of the
invoke function, i.e. when the server calls .invoke(...) on the
client, this function's callback is called.
Registers callback as a handler for the server-side transmitted event
of name. This is essentially the reverse of the transmit function,
i.e. when the server calls .transmit(...) on the client, this function's
callback is called.