MCPcopy Index your code
hub / github.com/coder/coder / Close

Method Close

agent/agentsocket/client.go:63–65  ·  view source on GitHub ↗

Close closes the socket connection.

()

Source from the content-addressed store, hash-verified

61
62// Close closes the socket connection.
63func (c *Client) Close() error {
64 return c.conn.Close()
65}
66
67// Ping sends a ping request to the agent.
68func (c *Client) Ping(ctx context.Context) error {

Callers 2

newSocketClientFunction · 0.95
sshClientFunction · 0.95

Calls 1

CloseMethod · 0.65

Tested by 2

newSocketClientFunction · 0.76
sshClientFunction · 0.76