| Modifier and Type | Method and Description |
|---|---|
void |
WebSocketListener.onConnectError(WebSocket websocket,
WebSocketException cause)
Called when
WebSocket.connectAsynchronously() failed. |
void |
WebSocketAdapter.onConnectError(WebSocket websocket,
WebSocketException exception) |
void |
WebSocketListener.onError(WebSocket websocket,
WebSocketException cause)
Call when an error occurred.
|
void |
WebSocketAdapter.onError(WebSocket websocket,
WebSocketException cause) |
void |
WebSocketListener.onFrameError(WebSocket websocket,
WebSocketException cause,
WebSocketFrame frame)
Called when a frame failed to be read from the web socket.
|
void |
WebSocketAdapter.onFrameError(WebSocket websocket,
WebSocketException cause,
WebSocketFrame frame) |
void |
WebSocketListener.onMessageDecompressionError(WebSocket websocket,
WebSocketException cause,
byte[] compressed)
Called when it failed to decompress a message.
|
void |
WebSocketAdapter.onMessageDecompressionError(WebSocket websocket,
WebSocketException cause,
byte[] compressed) |
void |
WebSocketListener.onMessageError(WebSocket websocket,
WebSocketException cause,
List<WebSocketFrame> frames)
Called when it failed to concatenate payloads of multiple frames
to construct a message.
|
void |
WebSocketAdapter.onMessageError(WebSocket websocket,
WebSocketException cause,
List<WebSocketFrame> frames) |
void |
WebSocketListener.onSendError(WebSocket websocket,
WebSocketException cause,
WebSocketFrame frame)
Called when an error occurred when a frame was tried to be sent
to the server.
|
void |
WebSocketAdapter.onSendError(WebSocket websocket,
WebSocketException cause,
WebSocketFrame frame) |
void |
WebSocketListener.onTextMessageError(WebSocket websocket,
WebSocketException cause,
byte[] data)
Called when it failed to convert payload data into a string.
|
void |
WebSocketAdapter.onTextMessageError(WebSocket websocket,
WebSocketException cause,
byte[] data) |
void |
WebSocketListener.onUnexpectedError(WebSocket websocket,
WebSocketException cause)
Called when an uncaught throwable was detected in either the
reading thread (which reads frames from the server) or the
writing thread (which sends frames to the server).
|
void |
WebSocketAdapter.onUnexpectedError(WebSocket websocket,
WebSocketException cause) |
| Modifier and Type | Method and Description |
|---|---|
WebSocket |
WebSocket.connect()
Send an opening handshake to the server, receive the response and then
start threads to communicate with the server.
|
Copyright © 2015. All rights reserved.