- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for onReadClose (0.06 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt
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. * * * If it is a control frame this will result in a single call to [FrameCallback].
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt
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)) } } internal class Open( val webSocket: WebSocket, val response: Response,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt
receivedPingCount++ } @Synchronized override fun onReadPong(payload: ByteString) { // This API doesn't expose pings. receivedPongCount++ awaitingPong = false } override fun onReadClose( code: Int, reason: String, ) { require(code != -1) synchronized(this) { check(receivedCloseCode == -1) { "already closed" } receivedCloseCode = code
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 22.1K bytes - Viewed (0)