com.ning.http.client.websocket.WebSocket |
![]() |
A Websocket client
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a
WebSocketListener | |||||||||||
Close the WebSocket.
| |||||||||||
Returns
true if the WebSocket is open/connected. | |||||||||||
Send a byte message.
| |||||||||||
Send a
ping with an optional payload
(limited to 125 bytes or less). | |||||||||||
Send a
ping with an optional payload
(limited to 125 bytes or less). | |||||||||||
Send a text message
| |||||||||||
Allows streaming of multiple binary fragments.
| |||||||||||
Allows streaming of multiple binary fragments.
| |||||||||||
Allows streaming of multiple text fragments.
|
Close the WebSocket.
Returns true
if the WebSocket is open/connected.
true
if the WebSocket is open/connected.
Send a byte message.
message | a byte message |
---|
Send a ping with an optional payload
(limited to 125 bytes or less).
payload | the ping payload. |
---|
Send a ping with an optional payload
(limited to 125 bytes or less).
payload | the pong payload. |
---|
Send a text message
message | a text message |
---|
Allows streaming of multiple binary fragments.
fragment | binary fragment. |
---|---|
last | flag indicating whether or not this is the last fragment. |
Allows streaming of multiple binary fragments.
fragment | binary fragment. |
---|---|
offset | starting offset. |
len | length. |
last | flag indicating whether or not this is the last fragment. |
Allows streaming of multiple text fragments.
fragment | text fragment. |
---|---|
last | flag indicating whether or not this is the last fragment. |