- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for newWebSocket (0.16 sec)
-
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
throw e } }, ) newWebSocket() assertThat(testLogHandler.take()).isEqualTo("INFO: [WS client] onFailure") } @Test fun throwingOnMessageClosesImmediatelyAndFails() { webServer.enqueue( MockResponse.Builder() .webSocketUpgrade(serverListener) .build(), ) newWebSocket() clientListener.assertOpen()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 35.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/DispatcherTest.kt
} @Test fun maxPerHostNotEnforcedForWebSockets() { dispatcher.maxRequestsPerHost = 2 client.newWebSocket(newRequest("http://a/1"), webSocketListener) client.newWebSocket(newRequest("http://a/2"), webSocketListener) client.newWebSocket(newRequest("http://a/3"), webSocketListener) executor.assertJobs("http://a/1", "http://a/2", "http://a/3") } @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Apr 05 03:30:42 UTC 2024 - 12.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
val pingIntervalMillis: Int = client.pingIntervalMillis val call: Call = client.newCall(Request.Builder().build()) val webSocket: WebSocket = client.newWebSocket( Request.Builder().build(), object : WebSocketListener() { }, ) val newBuilder: OkHttpClient.Builder = client.newBuilder() } @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0)