2👍
✅
That consumer is trying to send a message before accepting the connection.
I just tested and Daphne throws this exception:
File "...site-packages/daphne/ws_protocol.py", line 193, in handle_reply
"Socket has not been accepted, so cannot send over it"
And the clients receive a CloseEvent with code 1006
1👍
This looks like the same problem I described here.
Last message of your server before disconnect is that it is trying to send something (large?). I discovered that sending large WebSocket messages may lead to disconnect with error 1006.
You may try to configure your WebSocket server to send data in small chunks. It helped in my case.
- [Django]-Inconsistent SignatureDoesNotMatch Amazon S3 with django-pipeline, s3boto and storages
- [Django]-How do you get the type of widget used by a Django form field?
- [Django]-Sudo equivalent for Django user profiles
- [Django]-Managing a pool of connections to a hosted Elastic Search provider
- [Django]-How to access a model with its name in a string in django 1.9
Source:stackexchange.com