()
| 69 | }); |
| 70 | |
| 71 | async function spawn(): Promise<RunningServer> { |
| 72 | const r = await startServer({ |
| 73 | serviceOverrides: [fixedTokenAuth()], |
| 74 | host: '127.0.0.1', |
| 75 | port: 0, |
| 76 | lockPath, |
| 77 | logger: pino({ level: 'silent' }), |
| 78 | coreProcessOptions: { homeDir: bridgeHome }, |
| 79 | wsGatewayOptions: { pingIntervalMs: 5_000, pongTimeoutMs: 5_000 }, |
| 80 | }); |
| 81 | running.push(r); |
| 82 | return r; |
| 83 | } |
| 84 | |
| 85 | function wsUrl(http: string): string { |
| 86 | return http.replace(/^http:\/\//, 'ws://') + '/api/v1/ws'; |
no test coverage detected