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