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 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'); });