Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for loopReader (0.1 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

                }
              }
    
              // Process all web socket messages.
              val name = "$okHttpName WebSocket ${request.url.redact()}"
              initReaderAndWriter(name, streams)
              loopReader(response)
            }
    
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              failWebSocket(e)
            }
          },
        )
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            webSocketCloseTimeout = RealWebSocket.CANCEL_AFTER_CLOSE_MILLIS,
          )
        val name = "MockWebServer WebSocket ${request.path!!}"
        webSocket.initReaderAndWriter(name, streams)
        try {
          webSocket.loopReader(fancyResponse)
    
          // Even if messages are no longer being read we need to wait for the connection close signal.
          connectionClose.await()
        } finally {
          source.closeQuietly()
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
Back to top