chore: log web socket server errors

This commit is contained in:
Ricardo Arturo Cabral Mejia 2022-10-14 03:10:59 +00:00
parent 70c76e552d
commit f0a10527c3
No known key found for this signature in database
GPG Key ID: 5931EBF43A650245

View File

@ -34,7 +34,10 @@ export class WebSocketServerAdapter extends WebServerAdapter implements IWebSock
this.webSocketServer
.on(WebSocketServerAdapterEvent.Close, this.onClose.bind(this))
.on(WebSocketServerAdapterEvent.Connection, this.onConnection.bind(this))
.on('error', (err) => {
console.error('error', err)
throw err
})
this.heartbeatInterval = setInterval(this.onHeartbeat.bind(this), WSS_CLIENT_HEALTH_PROBE_INTERVAL)
}