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 topic (not implemented yet)
Generated using TypeDoc
A WebSocket connection that is valid from open to close event