()
| 49 | onConnection() {} |
| 50 | onError() {} |
| 51 | start() { |
| 52 | const wss = new WebSocketServer({ server: this.options.server }); |
| 53 | wss.on('listening', this.onListen); |
| 54 | wss.on('connection', this.onConnection); |
| 55 | wss.on('error', error => { |
| 56 | wssError = error; |
| 57 | this.onError(error); |
| 58 | }); |
| 59 | this.wss = wss; |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | const server = await reconfigureServer({ |
no test coverage detected