Merge pull request #475 from srossross/fix/ws_err_event

FIX: ws error event
This commit is contained in:
Jarrett Cruger 2013-09-16 17:04:38 -07:00
commit c01fd2c54e

View File

@ -83,7 +83,7 @@ function stream(req, socket, options, head) {
if (options.ee.listeners(ev + 'error').length == 0){
throw err;
}
options.ee.emit(ev + 'error', err, req, res);
options.ee.emit(ev + 'error', err, req, socket, head);
});
proxyReq.on('upgrade', function(proxyRes, proxySocket, proxyHead) {