Actively closes the connection.
Receives a new message using an InputStream.
Receives a new message and returns its contents as a newly allocated data array.
Sends a text message.
Sends a binary message.
Sends a message using an output stream.
Compatibility overload - will be removed soon.
Waits until either a message arrives or until the connection is closed.
Returns the close code sent by the remote end.
Returns the close reason sent by the remote end.
Determines if the WebSocket connection is still alive and ready for sending.
Checks if data is readily available for read.
The HTTP request that established the web socket connection.
Represents a single WebSocket connection.