Interface IWebSocketPingResult


public interface IWebSocketPingResult
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onResult(IWebSocketSession webSocketSession, long pingTime, long pingId, boolean result)
     
    void
    onResult(IWebSocketSession webSocketSession, long pingTime, long pingId, boolean result, int opcode)
    Triggered when WebSocket pong is received or pong is not received within ping timeout
  • Method Details

    • onResult

      void onResult(IWebSocketSession webSocketSession, long pingTime, long pingId, boolean result, int opcode)
      Triggered when WebSocket pong is received or pong is not received within ping timeout
      Parameters:
      webSocketSession - WebSocket session
      pingTime - elapsed time for ping response
      pingId - ping ID
      result - true, if pong received, false if timeout
    • onResult

      void onResult(IWebSocketSession webSocketSession, long pingTime, long pingId, boolean result)