Interface WebSocketListener
-
- All Implemented Interfaces:
public interface WebSocketListenerA listener for websocket events.
-
-
Method Summary
Modifier and Type Method Description UnitonWebSocketClosed(Throwable cause)Called after the websocket is closed. UnitonWebSocketError(Throwable exception)Called if some exception is thrown by the websocket client. -
-
Method Detail
-
onWebSocketClosed
Unit onWebSocketClosed(Throwable cause)
Called after the websocket is closed.
In case of a normal closure, the cause argument is null. The cause is non-null if the closure of the websocket is due to an exception in the STOMP client (STOMP error frame, unexpected websocket close frame, missing heart-beat, decoding errors, etc.).
Note that this callback is not called if the websocket itself failed with an exception. In that case, onWebSocketError is called instead.
-
onWebSocketError
Unit onWebSocketError(Throwable exception)
Called if some exception is thrown by the websocket client.
-
-
-
-