Uses of Class
com.neovisionaries.ws.client.WebSocketException
-
Uses of WebSocketException in com.neovisionaries.ws.client
Subclasses of WebSocketException in com.neovisionaries.ws.clientModifier and TypeClassDescriptionclassThe certificate of the peer does not match the expected hostname.classAn exception raised due to a violation against the WebSocket protocol.Methods in com.neovisionaries.ws.client with parameters of type WebSocketExceptionModifier and TypeMethodDescriptionvoidWebSocketAdapter.onConnectError(WebSocket websocket, WebSocketException exception) voidWebSocketListener.onConnectError(WebSocket websocket, WebSocketException cause) Called whenWebSocket.connectAsynchronously()failed.voidWebSocketAdapter.onError(WebSocket websocket, WebSocketException cause) voidWebSocketListener.onError(WebSocket websocket, WebSocketException cause) Call when an error occurred.voidWebSocketAdapter.onFrameError(WebSocket websocket, WebSocketException cause, WebSocketFrame frame) voidWebSocketListener.onFrameError(WebSocket websocket, WebSocketException cause, WebSocketFrame frame) Called when a WebSocket frame failed to be read from the WebSocket.voidWebSocketAdapter.onMessageDecompressionError(WebSocket websocket, WebSocketException cause, byte[] compressed) voidWebSocketListener.onMessageDecompressionError(WebSocket websocket, WebSocketException cause, byte[] compressed) Called when a message failed to be decompressed.voidWebSocketAdapter.onMessageError(WebSocket websocket, WebSocketException cause, List<WebSocketFrame> frames) voidWebSocketListener.onMessageError(WebSocket websocket, WebSocketException cause, List<WebSocketFrame> frames) Called when it failed to concatenate payloads of multiple frames to construct a message.voidWebSocketAdapter.onSendError(WebSocket websocket, WebSocketException cause, WebSocketFrame frame) voidWebSocketListener.onSendError(WebSocket websocket, WebSocketException cause, WebSocketFrame frame) Called when an error occurred when a frame was tried to be sent to the server.voidWebSocketAdapter.onTextMessageError(WebSocket websocket, WebSocketException cause, byte[] data) voidWebSocketListener.onTextMessageError(WebSocket websocket, WebSocketException cause, byte[] data) Called when it failed to convert payload data into a string.voidWebSocketAdapter.onUnexpectedError(WebSocket websocket, WebSocketException cause) voidWebSocketListener.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).Methods in com.neovisionaries.ws.client that throw WebSocketExceptionModifier and TypeMethodDescriptionWebSocket.connect()Connect to the server, send an opening handshake to the server, receive the response and then start threads to communicate with the server.WebSocket.getConnectedSocket()Get the raw socket which this WebSocket uses internally.