All Questions
5
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 ...
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 ...
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.
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 ...
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 ...