pip install -r requirements
#to start
daphne asgi_channel_demo.asgi:application
#if with nginx in socket
daphne -u /tmp/daphne.sock django_project.asgi:application
#use supervisor
daphne --fd 5 django_project.asgi:application
# https, only support HTTP/2 when using TLS,
pip install -U Twisted[tls,http2]
daphne -e ssl:443:privateKey=key.pem:certKey=crt.pem django_project.asgi:application
[ ref ] (https://channels.readthedocs.io/en/latest/)
django/daphne#292
https://github.com/dimkoug/celeryproject
python manage.py runserver
https://www.tutorialdocs.com/tutorial/django-channels/asgi.html