MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _leave_room

Method _leave_room

scripts/dashboard.py:592–600  ·  view source on GitHub ↗
(self, sid: str, path_str: str)

Source from the content-addressed store, hash-verified

590 self._leave_room(sid, current)
591
592 def _leave_room(self, sid: str, path_str: str) -> None:
593 session = self.sessions.get(path_str)
594 if not session:
595 return
596 if sid in session.subscribers:
597 session.subscribers.discard(sid)
598 leave_room(session.room, sid=sid)
599 if not session.subscribers:
600 session.stop()
601
602 def current_path(self, sid: str) -> Optional[str]:
603 return self.sid_to_path.get(sid)

Callers 2

subscribeMethod · 0.95
unsubscribeMethod · 0.95

Calls 2

getMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected