diff --git a/wlm_server/operation/consumers.py b/wlm_server/operation/consumers.py index 5ee4c61..dcbe96d 100644 --- a/wlm_server/operation/consumers.py +++ b/wlm_server/operation/consumers.py @@ -14,3 +14,6 @@ async def connect(self): self.group_name = f'channel_{self.ch}' await self.channel_layer.group_add(self.group_name, self.channel_name) await self.accept() + + async def disconnect(self, code): + await self.channel_layer.group_discard(self.group_name, self.channel_name)