startSSHServer starts the SSH server if the agent is currently disconnected.
()
| 213 | |
| 214 | // startSSHServer starts the SSH server if the agent is currently disconnected. |
| 215 | func (c *ConnectionManager) startSSHServer() { |
| 216 | if c.State == Disconnected { |
| 217 | go c.agent.StartServer(c.serverOptions) |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | // closeWebSocket closes the WebSocket connection if it exists. |
| 222 | func (c *ConnectionManager) closeWebSocket() { |