mirror of https://github.com/encode/starlette.git
DOCUMENTATION -- Correction in websockets.md (#1011)
Correct the exception class from `starlette.websockets.Disconnect` to `starlette.websockets.WebSocketDisconnect`
This commit is contained in:
parent
aee9106364
commit
1db80104f7
|
@ -68,7 +68,7 @@ Use `websocket.send_json(data, mode="binary")` to send JSON over binary data fra
|
|||
* `await websocket.receive_bytes()`
|
||||
* `await websocket.receive_json()`
|
||||
|
||||
May raise `starlette.websockets.Disconnect()`.
|
||||
May raise `starlette.websockets.WebSocketDisconnect()`.
|
||||
|
||||
JSON messages default to being received over text data frames, from version 0.10.0 onwards.
|
||||
Use `websocket.receive_json(data, mode="binary")` to receive JSON over binary data frames.
|
||||
|
|
Loading…
Reference in New Issue