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

Method send_message

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

Source from the content-addressed store, hash-verified

98 logging.info("WebSocket disconnected: %s", session_id)
99
100 async def send_message(self, session_id: str, message: Dict[str, Any]) -> None:
101 if session_id in self.active_connections:
102 websocket = self.active_connections[session_id]
103 try:
104 await websocket.send_text(_encode_ws_message(message))
105 except Exception as exc:
106 traceback.print_exc()
107 logging.error("Failed to send message to %s: %s", session_id, exc)
108 # self.disconnect(session_id)
109
110 def send_message_sync(self, session_id: str, message: Dict[str, Any]) -> None:
111 try:

Callers 13

connectMethod · 0.95
send_message_syncMethod · 0.95
broadcastMethod · 0.95
handle_heartbeatMethod · 0.95
handle_messageMethod · 0.95
_notify_human_promptMethod · 0.80
handle_messageMethod · 0.80
_handle_human_inputMethod · 0.80
_handle_get_statusMethod · 0.80
start_workflowMethod · 0.80
run_batchMethod · 0.80

Calls 2

_encode_ws_messageFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected