Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for onReadPong (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

        @Throws(IOException::class)
        fun onReadMessage(text: String)
    
        @Throws(IOException::class)
        fun onReadMessage(bytes: ByteString)
    
        fun onReadPing(payload: ByteString)
    
        fun onReadPong(payload: ByteString)
    
        fun onReadClose(
          code: Int,
          reason: String,
        )
      }
    
      /**
       * Process the next protocol frame.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt

            events.add(Message(bytes = bytes))
          }
    
          override fun onReadPing(payload: ByteString) {
            events.add(Ping(payload))
          }
    
          override fun onReadPong(payload: ByteString) {
            events.add(Pong(payload))
          }
    
          override fun onReadClose(
            code: Int,
            reason: String,
          ) {
            events.add(Closing(code, reason))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

        if (failed || enqueuedClose && messageAndCloseQueue.isEmpty()) return
    
        pongQueue.add(payload)
        runWriter()
        receivedPingCount++
      }
    
      @Synchronized override fun onReadPong(payload: ByteString) {
        // This API doesn't expose pings.
        receivedPongCount++
        awaitingPong = false
      }
    
      override fun onReadClose(
        code: Int,
        reason: String,
      ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
Back to top