Thanks for taking the time to reply.
In classic fashion, the issue has gone away and I'm not entirely sure why.
I suspect there might have been a page with older code buried somewhere,
trying to do websocket things wrongly, and that was throwing things off.
I'm sure it will rear it's head again, and if it does I will try and get a
reproducible test case.
On Thursday, March 1, 2018 at 9:48:59 PM UTC, Andrew Godwin wrote:
> Hi Toby,
> Do you have the latest versions of daphne, channels, asgiref and
> channels_redis? This sounds supiciously like a bug I fixed a couple weeks
>> I have a project that uses Channels as a worker queue, with a
>> SyncConsumer that runs a heavy computation task. This works great.
>> I transitioned the project to have a 'task in process' page that opens a
>> websocket and through the magic of channel's groups it gets pushed the
>> computation updates as they happen. This works great.
>> I'm now transitioning the project to be a single-page-app that
>> communicates via a websocket. Using `runserver`, this works great, the
>> websocket stays open. However, the messages from the SyncConsumer stop
>> after a few seconds. I've established that time is whatever the value of
>> `websocket_handshake_timeout` is, but this doesn't make sense to me AFAIK
>> as the channel_layer is independent from the JsonWebsocketConsumer
>> instance, and the websocket is happily connected and still passing messages.
>> Any ideas? Is this a bug or am I doing something wrong?
>> 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
>> To post to this group, send email to django...@googlegroups.com
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> 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 post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.