* Check whether a managed connection exists for the given server.
(serverId: string)
| 247 | * Check whether a managed connection exists for the given server. |
| 248 | */ |
| 249 | hasConnection(serverId: string): boolean { |
| 250 | for (const state of this.states.values()) { |
| 251 | if (state.serverId === serverId) return true |
| 252 | } |
| 253 | return false |
| 254 | } |
| 255 | |
| 256 | /** |
| 257 | * Get all managed connection states (for diagnostics). |
no outgoing calls
no test coverage detected