HTTP Client and WebSocket APIs
-
Builds a
WebSocket
connected to the given
URI
and
associated with the given
Listener
.
Sends binary data with bytes from the given buffer.
Initiates an orderly closure of this WebSocket's output by
sending a Close message with the given status code and the reason.
Sends a Ping message with bytes from the given buffer.
Sends a Pong message with bytes from the given buffer.
Sends textual data with characters from the given character sequence.
A binary data has been received.
Receives a Close message indicating the WebSocket's input has been
closed.
default void
default void
A WebSocket
has been connected.
A Ping message has been received.
A Pong message has been received.
A textual data has been received.