You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The repository README implies that the close callback will be given a request object, when it's really the proxy response object according to the relevant source.
//
// Listen for the close event on proxy.
//
proxy.on('close', function (req, socket, head) { // <-- req should be res
// view disconnected websocket connections
console.log('Client disconnected');
});
The text was updated successfully, but these errors were encountered:
The repository README implies that the
close
callback will be given a request object, when it's really the proxy response object according to the relevant source.//
// Listen for the
close
event onproxy
.//
proxy.on('close', function (req, socket, head) { // <--
req
should beres
// view disconnected websocket connections
console.log('Client disconnected');
});
The text was updated successfully, but these errors were encountered: