mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Merge pull request #950 from caioquirino/master
#949 Proxy example using req instead res on README
This commit is contained in:
commit
d2df053677
@ -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