(input: string)
| 10 | const HEALTH_POLL_INTERVAL_MS = 10_000 |
| 11 | |
| 12 | export function normalizeServerUrl(input: string) { |
| 13 | const trimmed = input.trim() |
| 14 | if (!trimmed) return |
| 15 | const withProtocol = /^https?:\/\//.test(trimmed) ? trimmed : `http://${trimmed}` |
| 16 | return withProtocol.replace(/\/+$/, "") |
| 17 | } |
| 18 | |
| 19 | export function serverName(conn?: ServerConnection.Any, ignoreDisplayName = false) { |
| 20 | if (!conn) return "" |
no outgoing calls
no test coverage detected