MCPcopy Create free account
hub / github.com/github/copilot-sdk / RuntimePort

Method RuntimePort

go/client.go:1540–1542  ·  view source on GitHub ↗

RuntimePort returns the TCP port the runtime is listening on. Returns 0 if the client is not connected or using stdio transport.

()

Source from the content-addressed store, hash-verified

1538// RuntimePort returns the TCP port the runtime is listening on.
1539// Returns 0 if the client is not connected or using stdio transport.
1540func (c *Client) RuntimePort() int {
1541 return c.actualPort
1542}
1543
1544// Ping sends a ping request to the server to verify connectivity.
1545//

Callers 8

TestSessionFSE2EFunction · 0.95
TestCommandsE2EFunction · 0.95
TestMultiClientE2EFunction · 0.95
TestClientOptionsE2EFunction · 0.95
TestConnectionTokenFunction · 0.95
serverCliURLFunction · 0.80

Calls

no outgoing calls

Tested by 8

TestSessionFSE2EFunction · 0.76
TestCommandsE2EFunction · 0.76
TestMultiClientE2EFunction · 0.76
TestClientOptionsE2EFunction · 0.76
TestConnectionTokenFunction · 0.76
serverCliURLFunction · 0.64