Skip to content

Commit d2df053

Browse files
committed
Merge pull request #950 from caioquirino/master
#949 Proxy example using req instead res on README
2 parents 7357200 + 25e56d0 commit d2df053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ proxy.on('open', function (proxySocket) {
399399
//
400400
// Listen for the `close` event on `proxy`.
401401
//
402-
proxy.on('close', function (req, socket, head) {
402+
proxy.on('close', function (res, socket, head) {
403403
// view disconnected websocket connections
404404
console.log('Client disconnected');
405405
});

0 commit comments

Comments
 (0)