docs: function Proxy(proxy) {
    stream.Duplex.call(this);
  
    this.proxy = proxy ? proxy : { type: 'direct' };
  
    this.on('error', function () {
      this.push(null);
      this.socket && this.socket.end();
    });
  }