node-http-proxy/lib/node-http-proxy/http-proxy.js
function detach() {
      proxySocket.destroySoon();
      proxySocket.removeListener('end', listeners.onIncomingClose);
      proxySocket.removeListener('data', listeners.onIncoming);
      reverseProxy.incoming.socket.destroySoon();
      reverseProxy.incoming.socket.removeListener('end', listeners.onOutgoingClose);
      reverseProxy.incoming.socket.removeListener('data', listeners.onOutgoing);
    }
function detach() {
      proxySocket.destroySoon();
      proxySocket.removeListener('end', listeners.onIncomingClose);
      proxySocket.removeListener('data', listeners.onIncoming);
      reverseProxy.incoming.socket.destroySoon();
      reverseProxy.incoming.socket.removeListener('end', listeners.onOutgoingClose);
      reverseProxy.incoming.socket.removeListener('data', listeners.onOutgoing);
    }
function detach ( ) { proxySocket . destroySoon ( ) ; proxySocket . removeListener ( 'end' , listeners . onIncomingClose ) ; proxySocket . removeListener ( 'data' , listeners . onIncoming ) ; reverseProxy . incoming . socket . destroySoon ( ) ; reverseProxy . incoming . socket . removeListener ( 'end' , listeners . onOutgoingClose ) ; reverseProxy . incoming . socket . removeListener ( 'data' , listeners . onOutgoing ) ; }
Helper function to detach all event listeners from `reverseProxy` and `proxySocket`.
Helper function to detach all event listeners from reverseProxy and proxySocket .