Hi Joshua,

This was actually a bug that was fixed in 1.0.2 - were you on an older
version? If not, I'd like to make sure the bug didn't somehow reappear!

Andrew

On Mon, Jan 16, 2017 at 10:00 AM, Joshua Gardner <[email protected]> wrote:

> 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 [email protected].
> To post to this group, send email to [email protected].
> 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
> <https://groups.google.com/d/msgid/django-users/164ed019-14c5-4328-ac21-f3935771d520%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CAFwN1uoFA-%3DXBQSqm3YwZcPvPdZWjGMJN39Spzn%2ByYPDdcKTBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to