We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e18945 commit 2f0d8bbCopy full SHA for 2f0d8bb
socketio/base_manager.py
@@ -39,12 +39,12 @@ def get_namespaces(self):
39
def get_participants(self, namespace, room):
40
"""Return an iterable with the active participants in a room."""
41
ns = self.rooms[namespace]
42
- if room is None or isinstance(room, str):
43
- participants = ns[room]._fwdm.copy() if room in ns else {}
44
- else:
+ if hasattr(room, '__len__') and not isinstance(room, str):
45
participants = ns[room[0]]._fwdm.copy() if room[0] in ns else {}
46
for r in room[1:]:
47
participants.update(ns[r]._fwdm if r in ns else {})
+ else:
+ participants = ns[room]._fwdm.copy() if room in ns else {}
48
for sid, eio_sid in participants.items():
49
yield sid, eio_sid
50
0 commit comments