-
-
Method Summary
Modifier and Type Method Description void
onConnect(@NotNull() WsConnectHandler wsConnectHandler)
Add a WsConnectHandler to the WsHandler. void
onMessage(@NotNull() WsMessageHandler wsMessageHandler)
Add a WsMessageHandler to the WsHandler. void
onBinaryMessage(@NotNull() WsBinaryMessageHandler wsBinaryMessageHandler)
Add a WsBinaryMessageHandler to the WsHandler. void
onClose(@NotNull() WsCloseHandler wsCloseHandler)
Add a WsCloseHandler to the WsHandler. void
onError(@NotNull() WsErrorHandler wsErrorHandler)
Add a wsErrorHandler to the WsHandler. -
-
Method Detail
-
onConnect
void onConnect(@NotNull() WsConnectHandler wsConnectHandler)
Add a WsConnectHandler to the WsHandler. The handler is called when a WebSocket client connects.
-
onMessage
void onMessage(@NotNull() WsMessageHandler wsMessageHandler)
Add a WsMessageHandler to the WsHandler. The handler is called when a WebSocket client sends a String message.
-
onBinaryMessage
void onBinaryMessage(@NotNull() WsBinaryMessageHandler wsBinaryMessageHandler)
Add a WsBinaryMessageHandler to the WsHandler. The handler is called when a WebSocket client sends a binary message.
-
onClose
void onClose(@NotNull() WsCloseHandler wsCloseHandler)
Add a WsCloseHandler to the WsHandler. The handler is called when a WebSocket client closes the connection. The handler is not called in case of network issues, only when the client actively closes the connection (or times out).
-
onError
void onError(@NotNull() WsErrorHandler wsErrorHandler)
Add a wsErrorHandler to the WsHandler. The handler is called when an error is detected.
-
-
-
-