mirror of
https://github.com/django/daphne.git
synced 2025-04-21 01:02:06 +03:00
parent
f8debafbd3
commit
6eaee8f522
|
@ -49,7 +49,7 @@ class WebsocketConsumer(BaseConsumer):
|
|||
need to call super() all the time.
|
||||
"""
|
||||
for group in self.connection_groups(**kwargs):
|
||||
Group(group, channel_layer=message.channel_layer).add(message.channel)
|
||||
Group(group, channel_layer=message.channel_layer).add(message.reply_channel)
|
||||
self.connect(message, **kwargs)
|
||||
|
||||
def connect(self, message, **kwargs):
|
||||
|
@ -99,7 +99,7 @@ class WebsocketConsumer(BaseConsumer):
|
|||
need to call super() all the time.
|
||||
"""
|
||||
for group in self.connection_groups(**kwargs):
|
||||
Group(group, channel_layer=message.channel_layer).discard(message.channel)
|
||||
Group(group, channel_layer=message.channel_layer).discard(message.reply_channel)
|
||||
self.disconnect(message, **kwargs)
|
||||
|
||||
def disconnect(self, message, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue
Block a user