(wsBase: string, ticket: string)
| 41 | return url.toString(); |
| 42 | } |
| 43 | |
| 44 | function connectUrlFor(wsBase: string, ticket: string): string { |
| 45 | const url = baseUrlWithPath(wsBase, 'connect'); |
| 46 | if (url.protocol === 'http:') { |
| 47 | url.protocol = 'ws:'; |
| 48 | } else if (url.protocol === 'https:') { |
| 49 | url.protocol = 'wss:'; |
| 50 | } |
| 51 | const query = { ticket } satisfies ConnectTicketQuery; |
no test coverage detected