Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for assertBinaryMessage (0.74 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt

        clientReader.processNextFrame()
        callback.assertBinaryMessage(bytes)
      }
    
      @Test fun clientTwoFrameBinary() {
        val bytes = binaryData(200)
        data.write("0264".decodeHex()).write(bytes, 0, 100)
        data.write("8064".decodeHex()).write(bytes, 100, 100)
        clientReader.processNextFrame()
        callback.assertBinaryMessage(bytes)
      }
    
      @Test fun twoFrameNotContinuation() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

            .build(),
        )
        val webSocket: WebSocket = newWebSocket()
        clientListener.assertOpen()
        val server = serverListener.assertOpen()
        webSocket.send("Hello!".encodeUtf8())
        serverListener.assertBinaryMessage("Hello!".encodeUtf8())
        closeWebSockets(webSocket, server)
      }
    
      @Test
      fun serverMessage() {
        webServer.enqueue(
          MockResponse.Builder()
            .webSocketUpgrade(serverListener)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
Back to top