📝 docs updated after review

This commit is contained in:
Alexandr 2020-06-22 21:42:39 +03:00
parent 286363799c
commit 7ba61274ce

View File

@ -4,7 +4,7 @@
Websocket Websocket
========= =========
You can enable web sockets if you select ``use_async`` option when creating a project. That indicates whether the project should use web sockets with Uvicorn + Gunicorn. You can enable web sockets if you select ``use_async`` option when creating a project. That indicates whether the project can use web sockets with Uvicorn + Gunicorn.
Usage Usage
----- -----
@ -19,14 +19,7 @@ JavaScript example: ::
undefined undefined
pong! pong!
If you are using nGinx instead of Traefik, you should add these lines to nGinx config: ::
location /websocket/ { If you don't use Traefik, you might have to configure your reverse proxy accordingly (example with Nginx_).
proxy_pass http://backend;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
Source: https://www.nginx.com/blog/websocket-nginx/ .. _Nginx: https://www.nginx.com/blog/websocket-nginx/