()
| 84 | }); |
| 85 | |
| 86 | async function spawn(): Promise<RunningServer> { |
| 87 | const r = await startServer({ |
| 88 | serviceOverrides: [fixedTokenAuth()], |
| 89 | host: '127.0.0.1', |
| 90 | port: 0, |
| 91 | lockPath, |
| 92 | logger: pino({ level: 'silent' }), |
| 93 | coreProcessOptions: { homeDir: bridgeHome }, |
| 94 | wsGatewayOptions: { pingIntervalMs: 60, pongTimeoutMs: 200 }, |
| 95 | }); |
| 96 | running.push(r); |
| 97 | return r; |
| 98 | } |
| 99 | |
| 100 | function wsUrl(http: string): string { |
| 101 | return http.replace(/^http:\/\//, 'ws://') + '/api/v1/ws'; |
no test coverage detected