diff --git a/lib/node-http-proxy/http-proxy.js b/lib/node-http-proxy/http-proxy.js index 7458b61..5ec206e 100644 --- a/lib/node-http-proxy/http-proxy.js +++ b/lib/node-http-proxy/http-proxy.js @@ -680,7 +680,7 @@ HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, buffer) socket.destroy(); }); - self.emit('webSocketProxyError', req, socket, head); + self.emit('webSocketProxyError', err, req, socket, head); } //