MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / basic_close_room

Method basic_close_room

src/socketio/base_manager.py:133–138  ·  view source on GitHub ↗
(self, room, namespace)

Source from the content-addressed store, hash-verified

131 pass
132
133 def basic_close_room(self, room, namespace):
134 try:
135 for sid, _ in self.get_participants(namespace, room):
136 self.basic_leave_room(sid, namespace, room)
137 except KeyError: # pragma: no cover
138 pass
139
140 def get_rooms(self, sid, namespace):
141 """Return the rooms a client is in."""

Callers 2

close_roomMethod · 0.80
close_roomMethod · 0.80

Calls 2

get_participantsMethod · 0.95
basic_leave_roomMethod · 0.95

Tested by

no test coverage detected