Hi there . its my first time to post on this comunity and i'm very happy to 
to do that. 

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`

code : https://pastebin.ubuntu.com/p/kdQkTDYpYc/

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+unsubscr...@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.

Reply via email to