I'm in the process of developing a Websockets notifications system using 
Channels. I've got a JsonWebsocketConsumer that adds the connection to a 
group for the Location (model) that the user belongs to. Connecting to that 
websocket with wscat, and trying to see if sending to that group works, I 
do Group(location.group_name).send({'text': '"some json"'}) within the 
Django shell. I *am* using the Redis channels backend. Even so, nothing is 
sent to the connected group. I even try sending to the reply_channel of the 
websocket connection from within the shell, and nothing is sent.

Do channels not work in the Django shell, or is something else possibly 
broken?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/29c7951a-2b02-4bd9-9f4f-0d5515cd23fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to