lib/connection.js
function end(cb) {
  if(typeof cb === 'function') {
    this.once('disconnect', cb);
  }

  if(this.tcp) {
    // must call destroy to terminate immediately
    this._socket.destroy();
  }else{
    this._socket.end();
  }
}
function end(cb) {
  if(typeof cb === 'function') {
    this.once('disconnect', cb);
  }

  if(this.tcp) {
    // must call destroy to terminate immediately
    this._socket.destroy();
  }else{
    this._socket.end();
  }
}
function end ( cb ) { if ( typeof cb === 'function' ) { this . once ( 'disconnect' , cb ) ; } if ( this . tcp ) { // must call destroy to terminate immediately this . _socket . destroy ( ) ; } else { this . _socket . end ( ) ; } }
Proxy end to the underlying socket.
Proxy end to the underlying socket .