mirror of
https://github.com/Cameri/nostream.git
synced 2025-04-09 12:28:13 +02:00
chore: log web socket server errors
This commit is contained in:
parent
70c76e552d
commit
f0a10527c3
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user