- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for RealWebSocket (0.2 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 22.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt
assertThat(client.canceled).isFalse() taskFaker.advanceUntil(ns(RealWebSocket.CANCEL_AFTER_CLOSE_MILLIS - 1)) assertThat(client.canceled).isFalse() taskFaker.advanceUntil(ns(RealWebSocket.CANCEL_AFTER_CLOSE_MILLIS)) assertThat(client.canceled).isTrue() client.processNextFrame() // This won't get a frame, but it will get a closed pipe.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 01:59:58 UTC 2024 - 18.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt
import okhttp3.Headers import okhttp3.Request import okhttp3.Response import okhttp3.ResponseBody import okhttp3.internal.http.ExchangeCodec import okhttp3.internal.http.RealResponseBody import okhttp3.internal.ws.RealWebSocket import okio.Buffer import okio.ForwardingSink import okio.ForwardingSource import okio.Sink import okio.Source import okio.buffer /**
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt
} } @Throws(SocketException::class) internal fun newWebSocketStreams(exchange: Exchange): RealWebSocket.Streams { val socket = this.socket!! val source = this.source!! val sink = this.sink!! socket.soTimeout = 0 noNewExchanges() return object : RealWebSocket.Streams(true, source, sink) { override fun close() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 15.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
// Server to client message big enough to be compressed. val message1 = repeat('a', RealWebSocket.DEFAULT_MINIMUM_DEFLATE_SIZE.toInt()) server.send(message1) clientListener.assertTextMessage(message1) // Client to server message big enough to be compressed. val message2 = repeat('b', RealWebSocket.DEFAULT_MINIMUM_DEFLATE_SIZE.toInt()) client.send(message2)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 35.2K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
.build() val connectionClose = CountDownLatch(1) val streams = object : RealWebSocket.Streams(false, source, sink) { override fun close() = connectionClose.countDown() override fun cancel() { socket.closeQuietly() } } val webSocket = RealWebSocket( taskRunner = taskRunner, originalRequest = fancyRequest,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 37.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
internal var readTimeout = 10_000 internal var writeTimeout = 10_000 internal var pingInterval = 0 internal var webSocketCloseTimeout = RealWebSocket.CANCEL_AFTER_CLOSE_MILLIS.toInt() internal var minWebSocketMessageToCompress = RealWebSocket.DEFAULT_MINIMUM_DEFLATE_SIZE internal var routeDatabase: RouteDatabase? = null internal var taskRunner: TaskRunner? = null
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:21:33 UTC 2024 - 52K bytes - Viewed (0)