- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for WebSocketRecorder (3.93 sec)
-
okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt
import java.util.concurrent.TimeUnit import okhttp3.Response import okhttp3.WebSocket import okhttp3.WebSocketListener import okhttp3.internal.platform.Platform import okio.ByteString class WebSocketRecorder( private val name: String, ) : WebSocketListener() { private val events = LinkedBlockingQueue<Any>() private var delegate: WebSocketListener? = null
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/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
private lateinit var webServer: MockWebServer private val handshakeCertificates = platform.localhostHandshakeCertificates() private val clientListener = WebSocketRecorder("client") private val serverListener = WebSocketRecorder("server") private val random = Random(0) private var client = clientTestRule.newClientBuilder() .writeTimeout(Duration.ofMillis(500))
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/internal/ws/WebSocketReaderTest.kt
import okio.ByteString.Companion.toByteString import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.Test class WebSocketReaderTest { private val data = Buffer() private val callback = WebSocketRecorder("client") private val random = Random(0) // Mutually exclusive. Use the one corresponding to the peer whose behavior you wish to test. private val serverReader = WebSocketReader( isClient = false,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 14.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt
private val sinkPipe: Pipe, ) : RealWebSocket.Streams(client, sourcePipe.source.buffer(), sinkPipe.sink.buffer()) { private val name = if (client) "client" else "server" val listener = WebSocketRecorder(name) var webSocket: RealWebSocket? = null var closed = false var canceled = false fun initWebSocket( random: Random?, pingIntervalMillis: Int = 0,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 01:59:58 UTC 2024 - 18.5K bytes - Viewed (0)