better fill out notes on the particular dependencies for the tutorial

This commit is contained in:
Kyle Martin 2023-07-24 09:48:08 -04:00
parent f7e3559bd5
commit 9df46e204c
No known key found for this signature in database
GPG Key ID: D6195318A9420CC2
1 changed files with 5 additions and 3 deletions

View File

@ -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