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