.env
file in the root of your project with the following content:
rediss://
protocol instead of redis://
to connect to Redis over TLS. This ensures secure communication between the server and the Redis instance.connect
, disconnect
, and message
events.handle_message
function broadcasts the received message to all connected clients except the sender.http://localhost:8000/
.