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

Method _send

tests/integration/test_mcp.py:95–97  ·  view source on GitHub ↗
(self, obj: dict)

Source from the content-addressed store, hash-verified

93 return self._id
94
95 def _send(self, obj: dict) -> None:
96 assert self._sock, "Not connected"
97 self._sock.sendall((json.dumps(obj, separators=(",", ":")) + "\n").encode())
98
99 def _recv(self, deadline: Optional[float] = None) -> dict:
100 assert self._sock, "Not connected"

Callers 8

requestMethod · 0.95
notifyMethod · 0.95
raw_sendMethod · 0.95
test_batch_two_readsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected