Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 115 for websocketjs (0.17 sec)

  1. docs/de/docs/advanced/websockets.md

    # WebSockets
    
    Sie können <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API" class="external-link" target="_blank">WebSockets</a> mit **FastAPI** verwenden.
    
    ## `WebSockets` installieren
    
    Zuerst müssen Sie `WebSockets` installieren:
    
    <div class="termy">
    
    ```console
    $ pip install websockets
    
    ---> 100%
    ```
    
    </div>
    
    ## WebSockets-Client
    
    ### In Produktion
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:17:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  2. docs/en/docs/reference/websockets.md

    ```
    
    ::: fastapi.WebSocketDisconnect
    
    ## WebSockets - additional classes
    
    Additional classes for handling WebSockets.
    
    Provided directly by Starlette, but you can import it from `fastapi`:
    
    ```python
    from fastapi.websockets import WebSocketDisconnect, WebSocketState
    ```
    
    ::: fastapi.websockets.WebSocketDisconnect
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/testing-websockets.md

    # Testing WebSockets
    
    You can use the same `TestClient` to test WebSockets.
    
    For this, you use the `TestClient` in a `with` statement, connecting to the WebSocket:
    
    ```Python hl_lines="27-31"
    {!../../../docs_src/app_testing/tutorial002.py!}
    ```
    
    !!! note
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Aug 29 14:02:58 GMT 2020
    - 449 bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/AutobahnTester.kt

              text: String,
            ) {
              webSocket.send(text)
            }
    
            override fun onClosing(
              webSocket: WebSocket,
              code: Int,
              reason: String,
            ) {
              webSocket.close(1000, null)
              latch.countDown()
            }
    
            override fun onFailure(
              webSocket: WebSocket,
              t: Throwable,
              response: Response?,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  5. LICENSES/vendor/github.com/tmc/grpc-websocket-proxy/LICENSE

    = vendor/github.com/tmc/grpc-websocket-proxy licensed under: =
    
    Copyright (C) 2016 Travis Cline
    
    Plain Text
    - Registered: Fri Apr 12 09:05:11 GMT 2024
    - Last Modified: Fri May 08 04:49:00 GMT 2020
    - 1.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/RecordedResponse.kt

    import java.util.Date
    
    /**
     * A received response or failure recorded by the response recorder.
     */
    class RecordedResponse(
      @JvmField val request: Request,
      val response: Response?,
      val webSocket: WebSocket?,
      val body: String?,
      val failure: IOException?,
    ) {
      fun assertRequestUrl(url: HttpUrl) =
        apply {
          assertThat(request.url).isEqualTo(url)
        }
    
      fun assertRequestMethod(method: String) =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  7. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            minimumDeflateSize = 0L,
            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()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  8. okhttp/api/okhttp.api

    }
    
    public abstract class okhttp3/WebSocketListener {
    	public fun <init> ()V
    	public fun onClosed (Lokhttp3/WebSocket;ILjava/lang/String;)V
    	public fun onClosing (Lokhttp3/WebSocket;ILjava/lang/String;)V
    	public fun onFailure (Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V
    	public fun onMessage (Lokhttp3/WebSocket;Ljava/lang/String;)V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

    import okhttp3.internal.ws.WebSocketProtocol.toggleMask
    import okio.Buffer
    import okio.BufferedSource
    import okio.ByteString
    
    /**
     * An [RFC 6455][rfc_6455]-compatible WebSocket frame reader.
     *
     * This class is not thread safe.
     *
     * [rfc_6455]: http://tools.ietf.org/html/rfc6455
     */
    class WebSocketReader(
      private val isClient: Boolean,
      val source: BufferedSource,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  10. docs/en/docs/release-notes.md

    ## 0.24.0
    
    * Add support for WebSockets with dependencies and parameters.
        * Support included for:
            * `Depends`
            * `Security`
            * `Cookie`
            * `Header`
            * `Path`
            * `Query`
            * ...as these are compatible with the WebSockets protocol (e.g. `Body` is not).
        * [Updated documentation for WebSockets](https://fastapi.tiangolo.com/advanced/websockets/).
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Apr 28 00:28:00 GMT 2024
    - 385.5K bytes
    - Viewed (1)
Back to top