Interface IWebSocketEventNotify

All Known Subinterfaces:
IWebSocketEventNotify2
All Known Implementing Classes:
WebSocketEventNotifyBase

public interface IWebSocketEventNotify
  • Method Summary

    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
    onMessage(IWebSocketSession webSocketSession, WebSocketMessage message)
    Triggered when WebSocket message (binary or text) is received (control messages are not included).
  • Method Details

    • 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