Please suggest to me a workaround on how to send message to groups on AsyncJsonWebsocketConsumer.disconnect()?
This is a simple example of my code. When I do this, I've got error:
File "/home/user/.pyenv/versions/3.8.6/envs/venv38/lib/python3.8/site-packages/channels_redis/core.py", line 666, in group_send await connection.zremrangebyscore( aioredis.errors.ConnectionForcedCloseError
I think, disconnect() method is not the best place to send messages. If yes, what is a good place for this?
Some useful links: