Install daphne by entering the following commands in the terminal:
sudo apt update sudo apt install daphne
Django Channels HTTP/WebSocket server
Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI, and developed to power Django Channels. . It supports automatic negotiation of protocols; there's no need for URL prefixing to determine WebSocket endpoints versus HTTP endpoints.