another thing I managed to think of is send specific message to a specific room of a user, like:
async_to_sync(channel_layer.group_send)("238", {"type": "send_text", "text": "close"}) and check in consumer's handler: async def send_text(self, event): if event == "close": await self.send(text_data="closed", close=True) or async_to_sync(channel_layer.group_discard)("room__36", "specific.aEuecdIR!DTiuBsxYfldN") when we want to drop him from one specific room and it requires to keep his channel name in some persistent storage. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6cc40327-8a4e-4877-ac99-97917deefcd2%40googlegroups.com.