public interface WebSocketConfigurer
Websocket configurer. Allow to register callbacks for websocket.
- Since:
- 2.2.0
- Author:
- edgar
-
Method Summary
Modifier and TypeMethodDescriptiononClose
(WebSocket.OnClose callback) Register anonClose
callback.onConnect
(WebSocket.OnConnect callback) Register anonConnect
callback.onError
(WebSocket.OnError callback) Register anonError
callback.onMessage
(WebSocket.OnMessage callback) Register anonMessage
callback.
-
Method Details
-
onConnect
Register anonConnect
callback.- Parameters:
callback
- Callback.- Returns:
- This configurer.
-
onMessage
Register anonMessage
callback.- Parameters:
callback
- Callback.- Returns:
- This configurer.
-
onError
Register anonError
callback.- Parameters:
callback
- Callback.- Returns:
- This configurer.
-
onClose
Register anonClose
callback.- Parameters:
callback
- Callback.- Returns:
- This configurer.
-