MCPcopy
hub / github.com/StructuredLabs/preswald / send_message

Method send_message

preswald/engine/runner.py:62–67  ·  view source on GitHub ↗

Send a message to the frontend.

(self, msg: dict)

Source from the content-addressed store, hash-verified

60 logger.info(f"[ScriptRunner] Loaded initial states: {initial_states}")
61
62 async def send_message(self, msg: dict):
63 """Send a message to the frontend."""
64 try:
65 await self._send_message_callback(msg)
66 except Exception as e:
67 logger.error(f"[ScriptRunner] Error sending message: {e}")
68
69 @property
70 def is_running(self) -> bool:

Callers 3

rerunMethod · 0.95
_send_errorMethod · 0.95
run_scriptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected