(url: string)
| 79 | } |
| 80 | |
| 81 | export function normalizeRelayUrl(url: string): string { |
| 82 | if (!url.startsWith("ws://") && !url.startsWith("wss://")) { |
| 83 | return `wss://${url}`; |
| 84 | } |
| 85 | return url; |
| 86 | } |
| 87 | |
| 88 | export function deriveWorkspaceName(relayUrl: string): string { |
| 89 | try { |
no outgoing calls
no test coverage detected