Skip to main content

All Questions

1 vote
0 answers
78 views

Websocket events are not called inside tasks.py

I use Scheduled Celery workers to perform a loop of sending WebSocket events, but it doesn't seem to work inside tasks.py. I tested inside views.py and that seems to work, but I need to send them in ...
R3dy's user avatar
  • 30
2 votes
1 answer
5k views

Cant send a message to a Django channel via group_send

I want to send a message over a channel using Django Channels. This is how I'm doing. I create a consumer first. I'm able to echo back the received messages. However, not able to send messages to a ...
Praful Bagai's user avatar
  • 17.2k
3 votes
1 answer
2k views

Django Channels 2: How Many Users Is In The Specific Room

I am using django-channels>=2.0.0 and I want to find how many users in "room1". I don't know how to find total connections.
John's user avatar
  • 75
0 votes
1 answer
870 views

How to connect websocket after set up with NGINX and Supervisor?

I created a Django Channel beside my wsgi application. Everything works fine if I run: daphne -b 0.0.0.0 -p 8001 myapp.asgi:application I can connect to the websocekt but after I created ...
Mark Kiraly's user avatar
0 votes
1 answer
1k views

Django Channels: Connect to Sockets

I'm setting up Django Channels and so far this is the code I've put up. #routing.py from channels.auth import AuthMiddlewareStack from channels.routing import ProtocolTypeRouter, URLRouter import ...
Sam B.'s user avatar
  • 2,973