mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
#949 Proxy example using req instead res on README
README example implies request instead of response parameter
This commit is contained in:
parent
268994ea45
commit
25e56d0182
@ -399,7 +399,7 @@ proxy.on('open', function (proxySocket) {
|
|||||||
//
|
//
|
||||||
// Listen for the `close` event on `proxy`.
|
// Listen for the `close` event on `proxy`.
|
||||||
//
|
//
|
||||||
proxy.on('close', function (req, socket, head) {
|
proxy.on('close', function (res, socket, head) {
|
||||||
// view disconnected websocket connections
|
// view disconnected websocket connections
|
||||||
console.log('Client disconnected');
|
console.log('Client disconnected');
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user