IWebSocketEventNotify, IWebSocketEventNotify2public class WebSocketEventNotifyBase extends Object implements IWebSocketEventNotify2
| Constructor | Description |
|---|---|
WebSocketEventNotifyBase() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
onCreate(IWebSocketSession webSocketSession) |
Trigger when WebSocket session is created
|
void |
onDestroy(IWebSocketSession webSocketSession) |
Triggered when WebSocket session is destroyed
|
void |
onIdle(IWebSocketSession webSocketSession) |
Triggered for idle events
|
void |
onMessage(IWebSocketSession webSocketSession,
WebSocketMessage message) |
Triggered when WebSocket message (binary or text) is received (control messages are not included).
|
public void onCreate(IWebSocketSession webSocketSession)
onCreate in interface IWebSocketEventNotifywebSocketSession - WebSocket sessionpublic void onDestroy(IWebSocketSession webSocketSession)
onDestroy in interface IWebSocketEventNotifywebSocketSession - WebSocket sessionpublic void onIdle(IWebSocketSession webSocketSession)
onIdle in interface IWebSocketEventNotify2webSocketSession - WebSocket sessionpublic void onMessage(IWebSocketSession webSocketSession, WebSocketMessage message)
onMessage in interface IWebSocketEventNotifywebSocketSession - WebSocket sessionmessage - WebSocket message