Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Gomes (0.12 sec)

  1. docs/en/docs/advanced/websockets.md

    ```
    
    !!! note "Technical Details"
        You could also use `from starlette.websockets import WebSocket`.
    
        **FastAPI** provides the same `WebSocket` directly just as a convenience for you, the developer. But it comes directly from Starlette.
    
    ## Await for messages and send messages
    
    In your WebSocket route you can `await` for messages and send messages.
    
    ```Python hl_lines="48-52"
    {!../../../docs_src/websockets/tutorial001.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top