Browse Source

better fill out notes on the particular dependencies for the tutorial

pull/9930/head
Kyle Martin 2 years ago
parent
commit
9df46e204c
No known key found for this signature in database GPG Key ID: D6195318A9420CC2
  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`
First you need to install `WebSockets`:
First you need to 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