You are not using it incorrectly - this is a known issue:
https://github.com/django/daphne/issues/152
Andrew
On Mon, Feb 5, 2018 at 11:53 PM, Ahmed Magdy wrote:
> It seems like I cannot get the disconnect function in the consumer to get
> called at all.
>
> class ChatConsumer(WebsocketConsumer)
It seems like I cannot get the disconnect function in the consumer to get
called at all.
class ChatConsumer(WebsocketConsumer):
def connect(self):
self.accept()
def disconnect(self):
print('disconnected')
Using self.close from the consumer, or closing the javascript websock
2 matches
Mail list logo