Find all users (reply_channels) added to the group (Django channels)

I use the Django channels Group to create a chat system and I want all users to visit the chat.

The group provides the following methods:

  • Group("group_name").add(message.reply_channel)
  • Group("group_name").discard(message.reply_channel)
  • Group("group_name").send({"text": "My group message",})

But there is nothing like this, I can find all users (reply_channel) in the group.

thanks

+5
source share
1 answer

Django channels deliberately avoid the ability to define all users, mainly due to scalability issues. Read this

However, there is this package called Django Channels Presence, which allows you to define users currently in the room, and they use it differently compared to Django channels.

0
source

All Articles