Skip to content

Commit 604c122

Browse files
committed
adds more debugging
1 parent 18a7c29 commit 604c122

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ class Server extends EventEmitter {
133133
this.ws.on('connection', (socket, req) => {
134134
// Note: socket.upgradeReq was removed in [email protected], so re-add it.
135135
// https://github.com/websockets/ws/pull/1099
136+
debug('ws upgrade request', req, 'to socket', socket)
136137
socket.upgradeReq = req
137138
this.onWebSocketConnection(socket)
138139
})
@@ -618,7 +619,7 @@ class Server extends EventEmitter {
618619
}
619620

620621
_onWebSocketError (socket, err) {
621-
debug('websocket error %s', err.message || err)
622+
console.log('websocket error %s', err.message || err)
622623
this.emit('warning', err)
623624
this._onWebSocketClose(socket)
624625
}

0 commit comments

Comments
 (0)