Interface IWebSocketEventNotify

    • Method Detail

      • onCreate

        void onCreate​(IWebSocketSession webSocketSession)
        Trigger when WebSocket session is created
        Parameters:
        webSocketSession - WebSocket session
      • onDestroy

        void onDestroy​(IWebSocketSession webSocketSession)
        Triggered when WebSocket session is destroyed
        Parameters:
        webSocketSession - WebSocket session
      • onMessage

        void onMessage​(IWebSocketSession webSocketSession,
                       WebSocketMessage message)
        Triggered when WebSocket message (binary or text) is received (control messages are not included).
        Parameters:
        webSocketSession - WebSocket session
        message - WebSocket message