I have managed to get django sending messages to a browser websocket client using channels. But I don't understand it very well.
Messages my Celery background task creates before the websocket handshake from the browser do not get shown.
messages are sent with
async_to_sync(channel_layer.group_send)(str(job.id),..)
Django v 2.1.7.
The channel layer uses redis so group_send is from channels_redis and the first argument is the group id. I would like a client connecting with the job.id to get all messages ever sent to that group.
Does this make sense?