Re: channels v2.0.0 disconnect function not triggering

2018-02-06 Thread Andrew Godwin
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

channels v2.0.0 disconnect function not triggering

2018-02-05 Thread Ahmed Magdy
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