MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / broadcast

Method broadcast

server/services/websocket_manager.py:120–122  ·  view source on GitHub ↗
(self, message: Dict[str, Any])

Source from the content-addressed store, hash-verified

118 asyncio.run(self.send_message(session_id, message))
119
120 async def broadcast(self, message: Dict[str, Any]) -> None:
121 for session_id in list(self.active_connections.keys()):
122 await self.send_message(session_id, message)
123
124 async def handle_heartbeat(self, session_id: str) -> None:
125 if session_id in self.active_connections:

Callers

nothing calls this directly

Calls 1

send_messageMethod · 0.95

Tested by

no test coverage detected