- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for receive_text (0.04 sec)
-
docs/en/docs/advanced/websockets.md
<img src="/img/tutorial/websockets/image05.png"> ## Handling disconnections and multiple clients { #handling-disconnections-and-multiple-clients } When a WebSocket connection is closed, the `await websocket.receive_text()` will raise a `WebSocketDisconnect` exception, which you can then catch and handle like in this example. {* ../../docs_src/websockets/tutorial003_py39.py hl[79:81] *} To try it out:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 5.7K bytes - Viewed (0)