_wrapSocket(socket) {
    this._socket = socket;
    this._socket.on('close', (hadError) => this.emit('close', hadError));
    this._socket.on('connect', () => this.emit('connect'));
    this._socket.on('drain', () => this.emit('drain'));
    this._socket.on('end', () => this.emit('end'));
    this._socket.on('error', (err) => this.emit('error', err));
    this._socket.on('lookup', (err, address, family, host) => this.emit('lookup', err, address, family, host)); // prettier-ignore
    this._socket.on('ready', () => this.emit('ready'));
    this._socket.on('timeout', () => this.emit('timeout'));
    this._socket.on('readable', this._onReadable.bind(this));
  }
/**
    Wraps a standard TCP Socket by binding to all events and either
    rebroadcasting those events or performing custom functionality.
    @private
    @param {Socket} socket
   */
Wraps a standard TCP Socket by binding to all events and either
rebroadcasting those events or performing custom functionality.
Wraps a standard TCP Socket by binding to all events and either rebroadcasting those events or performing custom functionality .
_wrapSocket(socket) {
    this._socket = socket;
    this._socket.on('close', (hadError) => this.emit('close', hadError));
    this._socket.on('connect', () => this.emit('connect'));
    this._socket.on('drain', () => this.emit('drain'));
    this._socket.on('end', () => this.emit('end'));
    this._socket.on('error', (err) => this.emit('error', err));
    this._socket.on('lookup', (err, address, family, host) => this.emit('lookup', err, address, family, host)); 
    this._socket.on('ready', () => this.emit('ready'));
    this._socket.on('timeout', () => this.emit('timeout'));
    this._socket.on('readable', this._onReadable.bind(this));
  }
_wrapSocket ( socket ) { this . _socket = socket ; this . _socket . on ( 'close' , ( hadError ) => this . emit ( 'close' , hadError ) ) ; this . _socket . on ( 'connect' , ( ) => this . emit ( 'connect' ) ) ; this . _socket . on ( 'drain' , ( ) => this . emit ( 'drain' ) ) ; this . _socket . on ( 'end' , ( ) => this . emit ( 'end' ) ) ; this . _socket . on ( 'error' , ( err ) => this . emit ( 'error' , err ) ) ; this . _socket . on ( 'lookup' , ( err , address , family , host ) => this . emit ( 'lookup' , err , address , family , host ) ) ; this . _socket . on ( 'ready' , ( ) => this . emit ( 'ready' ) ) ; this . _socket . on ( 'timeout' , ( ) => this . emit ( 'timeout' ) ) ; this . _socket . on ( 'readable' , this . _onReadable . bind ( this ) ) ; }
Wraps a standard TCP Socket by binding to all events and either
rebroadcasting those events or performing custom functionality.
Wraps a standard TCP Socket by binding to all events and either rebroadcasting those events or performing custom functionality .
// prettier-ignore