Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 140 for Websockets (0.11 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
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 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
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/websockets.md

    # WebSockets
    
    You can use <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API" class="external-link" target="_blank">WebSockets</a> with **FastAPI**.
    
    ## Install `WebSockets`
    
    Make sure you create a [virtual environment](../virtual-environments.md){.internal-link target=_blank}, activate it, and install `websockets`:
    
    <div class="termy">
    
    ```console
    $ pip install websockets
    
    ---> 100%
    ```
    
    </div>
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. docs/pt/docs/advanced/testing-websockets.md

    # Testando WebSockets
    
    Você pode usar o mesmo `TestClient` para testar WebSockets.
    
    Para isso, você utiliza o `TestClient` dentro de uma instrução `with`, conectando com o WebSocket:
    
    ```Python hl_lines="27-31"
    {!../../docs_src/app_testing/tutorial002.py!}
    ```
    
    /// note | "Nota"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 488 bytes
    - Viewed (0)
  5. docs/pt/docs/advanced/websockets.md

    ```Python hl_lines="2  6-38  41-43"
    {!../../docs_src/websockets/tutorial001.py!}
    ```
    
    ## Criando um `websocket`
    
    Em sua aplicação **FastAPI**, crie um `websocket`:
    
    {*../../docs_src/websockets/tutorial001.py hl[46:47]*}
    
    /// note | Detalhes Técnicos
    
    Você também poderia usar `from starlette.websockets import WebSocket`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 12:20:59 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. docs/zh/docs/advanced/websockets.md

    # WebSockets
    
    您可以在 **FastAPI** 中使用 [WebSockets](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API)。
    
    ## 安装 `WebSockets`
    
    首先,您需要安装 `WebSockets`:
    
    ```console
    $ pip install websockets
    
    ---> 100%
    ```
    
    ## WebSockets 客户端
    
    ### 在生产环境中
    
    在您的生产系统中,您可能使用现代框架(如React、Vue.js或Angular)创建了一个前端。
    
    要使用 WebSockets 与后端进行通信,您可能会使用前端的工具。
    
    或者,您可能有一个原生移动应用程序,直接使用原生代码与 WebSocket 后端通信。
    
    或者,您可能有其他与 WebSocket 终端通信的方式。
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/websockets.md

    ```Python hl_lines="2  6-38  41-43"
    {!../../docs_src/websockets/tutorial001.py!}
    ```
    
    ## ✍ `websocket`
    
    👆 **FastAPI** 🈸, ✍ `websocket`:
    
    ```Python hl_lines="1  46-47"
    {!../../docs_src/websockets/tutorial001.py!}
    ```
    
    /// note | "📡 ℹ"
    
    👆 💪 ⚙️ `from starlette.websockets import WebSocket`.
    
    **FastAPI** 🚚 🎏 `WebSocket` 🔗 🏪 👆, 👩‍💻. ✋️ ⚫️ 👟 🔗 ⚪️➡️ 💃.
    
    ///
    
    ## ⌛ 📧 &amp; 📨 📧
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. docs/ja/docs/advanced/websockets.md

    **FastAPI** アプリケーションで、`websocket` を作成します。
    
    ```Python hl_lines="1  46-47"
    {!../../docs_src/websockets/tutorial001.py!}
    ```
    
    /// note | "技術詳細"
    
    `from starlette.websockets import WebSocket` を使用しても構いません.
    
    **FastAPI** は開発者の利便性のために、同じ `WebSocket` を提供します。しかし、こちらはStarletteから直接提供されるものです。
    
    ///
    
    ## メッセージの送受信
    
    WebSocketルートでは、 `await` を使ってメッセージの送受信ができます。
    
    ```Python hl_lines="48-52"
    {!../../docs_src/websockets/tutorial001.py!}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. docs/tr/docs/advanced/testing-websockets.md

    # WebSockets'i Test Etmek
    
    WebSockets testi yapmak için `TestClient`'ı kullanabilirsiniz.
    
    Bu işlem için, `TestClient`'ı bir `with` ifadesinde kullanarak WebSocket'e bağlanabilirsiniz:
    
    ```Python hl_lines="27-31"
    {!../../docs_src/app_testing/tutorial002.py!}
    ```
    
    /// note | "Not"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 472 bytes
    - Viewed (0)
  10. docs/zh/docs/advanced/testing-websockets.md

    # 测试 WebSockets
    
    测试 WebSockets 也使用 `TestClient`。
    
    为此,要在 `with` 语句中使用 `TestClient` 连接 WebSocket。
    
    ```Python hl_lines="27-31"
    {!../../docs_src/app_testing/tutorial002.py!}
    ```
    
    /// note | "笔记"
    
    更多细节详见 <a href="https://www.starlette.io/testclient/#testing-websocket-sessions" class="external-link" target="_blank">Starlette 官档 - 测试 WebSockets</a>。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 418 bytes
    - Viewed (0)
Back to top