Browse Source

Merge 2e1bf336f5 into 6df50d40fe

pull/9930/merge
Kyle Martin 4 days ago
committed by GitHub
parent
commit
171cb503c8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      docs/en/docs/advanced/websockets.md

8
docs/en/docs/advanced/websockets.md

@ -2,20 +2,22 @@
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`
## Install `uvicorn` and `websockets`
Make sure you create a [virtual environment](../virtual-environments.md){.internal-link target=_blank}, activate it, and install `websockets`:
Make sure you create a [virtual environment](../virtual-environments.md){.internal-link target=_blank}, activate it, and install `uvicorn` and `websockets`:
<div class="termy">
```console
$ pip install websockets
$ pip install uvicorn websockets
---> 100%
```
</div>
Uvicorn uses `websockets` to handle the websocket protocol. Note that FastAPI does not use the `websockets` package directly.
## WebSockets client
### In production

Loading…
Cancel
Save