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

Method close

examples/MCP Client/client.py:182–186  ·  view source on GitHub ↗

Close connection

(self)

Source from the content-addressed store, hash-verified

180 return None
181
182 def close(self):
183 """Close connection"""
184 if self.sock:
185 self.sock.close()
186 print("\n✓ Connection closed")
187
188
189def main():

Callers 8

mainFunction · 0.95
mainFunction · 0.45
runMethod · 0.45
mainFunction · 0.45
sendFunction · 0.45
mainFunction · 0.45
disconnectMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 3

mainFunction · 0.36
sendFunction · 0.36
disconnectMethod · 0.36