Arbitrary user data may be attached to this object
Forefully closes this WebSocket. Immediately calls close handler.
Gradefully closes this WebSocket. Immediately calls close handler.
Returns the bytes buffered in backpressure.
Returns the remote IP address
Publish a message to a topic in MQTT syntax
Sends a message. Make sure to check getBufferedAmount() before sending. Returns true for success, false for built up backpressure that will drain when time is given.
Subscribe to a topic in MQTT syntax
Unsubscribe from a topic. Returns true on success, if the WebSocket was subscribed.
Generated using TypeDoc
A WebSocket connection that is valid from open to close event