I'm going to answer my own question:

Appears that I need to use the "immediately" keyword are to Channel or 
Group.send.

On Monday, January 16, 2017 at 5:27:19 AM UTC-7, Joshua Gardner wrote:
>
> 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/164ed019-14c5-4328-ac21-f3935771d520%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to