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

Method disconnect

tests/utils/api_client.py:72–80  ·  view source on GitHub ↗

Close the connection.

(self)

Source from the content-addressed store, hash-verified

70 ) from e
71
72 def disconnect(self) -> None:
73 """Close the connection."""
74 if self._socket:
75 try:
76 self._socket.close()
77 except Exception:
78 pass
79 self._socket = None
80 self._buffer = b""
81
82 def _recv_message(self, timeout: Optional[float] = None) -> dict:
83 """Receive a single JSON message from the socket."""

Callers 10

serial_studio_runningFunction · 0.95
api_clientFunction · 0.95
serial_studio_runningFunction · 0.95
api_clientFunction · 0.95
api_server_requiredFunction · 0.95
security_clientFunction · 0.95
_checkFunction · 0.95
__exit__Method · 0.95
api_clientFunction · 0.95

Calls 1

closeMethod · 0.45

Tested by 8

serial_studio_runningFunction · 0.76
api_clientFunction · 0.76
serial_studio_runningFunction · 0.76
api_clientFunction · 0.76
api_server_requiredFunction · 0.76
security_clientFunction · 0.76
_checkFunction · 0.76