- onConnect
This callback will be invoked when the opening handshake between both endpoints
has been completed.
- send
Send a binary frame to the remote end-point.
- close
Closes this WebSocket using the specified status code and reason.
- isConnected
Convenience method to determine if this WebSocket is connected.
- stream
Sends a fragment of a complete message.
- onClose
This callback will be invoked when the remote end-point sent a closing frame.
- onFragment
This callback will be invoked when a fragmented binary message has been
received.
- onMessage
This callback will be invoked when a binary message has been received.
- onPing
This callback will be invoked when the remote end-point has sent a ping frame.
- broadcast
Broadcasts the data to the remote end-point set.