|
|
@@ -248,8 +248,16 @@ class globCL(GCLMixin):
|
|
248
|
248
|
run_persistent_loop = _run_persistent_loop
|
|
249
|
249
|
|
|
250
|
250
|
|
|
|
251
|
+ def sync_dev_group_discard(self,*a,**kw):
|
|
|
252
|
+ glob_cl.cbs_once.append(self.sync_dev_group_discard(*a,**kw))
|
|
|
253
|
+ async def dev_group_discard(self,group_name,consumer):
|
|
|
254
|
+ channel_layer = glob_cl.acl
|
|
|
255
|
+ if consumer.channel_name in consumer.groups:
|
|
|
256
|
+ consumer.groups.remove(group_name)
|
|
|
257
|
+ await channel_layer.group_discard(group_name,consumer.channel_name)
|
|
|
258
|
+
|
|
251
|
259
|
def sync_dev_group_add(self,*a,**kw):
|
|
252
|
|
- glob_cl.cbs_once.append(group_add(*a,**kw))
|
|
|
260
|
+ glob_cl.cbs_once.append(self.group_add(*a,**kw))
|
|
253
|
261
|
async def dev_group_add(self,group_name,consumer):
|
|
254
|
262
|
channel_layer = glob_cl.acl
|
|
255
|
263
|
# if not consumer.channel_name in consumer.groups_set:
|