README example implies request instead of response parameter
Created by: nitind
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');
});