I'm using djnago channels `AsyncWebsocketConsumer` consumer . pay attention to `receive` method in my code .in i cant understand why this code block `await self.channel_layer.group_send` called after this line `raise APIException`. i found out this issue when i send a message to websocket and channels raises this error:
`File "/home/vahid/LEARNING/Python/dayachat/.venv/lib/python3.8/site-packages/autobahn/websocket/protocol.py", line 2216, in sendMessage
raise Disconnected("Attempt to send on a closed protocol")
autobahn.exception.Disconnected: Attempt to send on a closed protocol`
thanks guys.
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/99818611-00de-447e-96c4-7473ae0b5405n%40googlegroups.com.
No comments:
Post a Comment