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.
BaseManager.get_participants()
1 parent f298c9b commit 33722a0Copy full SHA for 33722a0
src/socketio/base_manager.py
@@ -29,7 +29,13 @@ def get_namespaces(self):
29
return self.rooms.keys()
30
31
def get_participants(self, namespace, room):
32
- """Return an iterable with the active participants in a room."""
+ """Return an iterable with the active participants in a room.
33
+
34
+ Note that in a multi-server scenario this method only returns the
35
+ participants connect to the server in which the method is called. There
36
+ is currently no functionality to assemble a complete list of users across
37
+ multiple servers.
38
+ """
39
ns = self.rooms.get(namespace, {})
40
if hasattr(room, '__len__') and not isinstance(room, str):
41
participants = ns[room[0]]._fwdm.copy() if room[0] in ns else {}
0 commit comments