nagavardhan987
3 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
docs/en/docs/reference/websockets.md
|
|
|
@ -60,7 +60,7 @@ from fastapi.websockets import WebSocketDisconnect, WebSocketState |
|
|
|
|
|
|
|
When a client disconnects, a `WebSocketDisconnect` exception is raised, you can catch it. |
|
|
|
|
|
|
|
You can import it directly form `fastapi`: |
|
|
|
You can import it directly from `fastapi`: |
|
|
|
|
|
|
|
```python |
|
|
|
from fastapi import WebSocketDisconnect |
|
|
|
|