lib/server.js
function disconnect(conn, socket, err) {
  //console.dir('disconnect');

  // clean monitor listeners
  if(this._monitor[conn.id]) {
    this.removeListener('monitor', this._monitor[conn.id]);
    delete this._monitor[conn.id];
  }

  this._state.removeConnection(conn);
}
function disconnect(conn, socket, err) {
  //console.dir('disconnect');

  // clean monitor listeners
  if(this._monitor[conn.id]) {
    this.removeListener('monitor', this._monitor[conn.id]);
    delete this._monitor[conn.id];
  }

  this._state.removeConnection(conn);
}
function disconnect ( conn , socket , err ) { //console.dir('disconnect'); // clean monitor listeners if ( this . _monitor [ conn . id ] ) { this . removeListener ( 'monitor' , this . _monitor [ conn . id ] ) ; delete this . _monitor [ conn . id ] ; } this . _state . removeConnection ( conn ) ; }
Listener for the connection disconnect event triggered
by the socket close event.

@param conn The connection.
@param socket The underlying socket.
@param err Boolean indicating if a transmission error occured.
Listener for the connection disconnect event triggered by the socket close event .