Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
189
def
main():
Callers
8
main
Function · 0.95
main
Function · 0.45
run
Method · 0.45
main
Function · 0.45
send
Function · 0.45
main
Function · 0.45
disconnect
Method · 0.45
main
Function · 0.45
Calls
no outgoing calls
Tested by
3
main
Function · 0.36
send
Function · 0.36
disconnect
Method · 0.36