Interface IWebSocketPingResult


  • public interface IWebSocketPingResult
    • Method Detail

      • 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)