MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / _send_message

Method _send_message

tests/utils/api_client.py:113–119  ·  view source on GitHub ↗

Send a JSON message to the server.

(self, message: dict)

Source from the content-addressed store, hash-verified

111 continue
112
113 def _send_message(self, message: dict) -> None:
114 """Send a JSON message to the server."""
115 if not self._socket:
116 raise RuntimeError("Not connected")
117
118 data = json.dumps(message, separators=(",", ":")) + "\n"
119 self._socket.sendall(data.encode("utf-8"))
120
121 def command(
122 self,

Callers 2

commandMethod · 0.95
batchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected