lib/connection.js
function monitor(server) {
  // cannot receive data anymore we just send it
  this.removeAllListeners('data');

  var listener = this.request.bind(this);

  // keep track of the monitor listeners
  // for clean up
  server._monitor[this.id] = listener;

  // flag on the client for client list flags
  this._client.monitor = true;

  server.on('monitor', listener);
}
function monitor(server) {
  // cannot receive data anymore we just send it
  this.removeAllListeners('data');

  var listener = this.request.bind(this);

  // keep track of the monitor listeners
  // for clean up
  server._monitor[this.id] = listener;

  // flag on the client for client list flags
  this._client.monitor = true;

  server.on('monitor', listener);
}
function monitor ( server ) { // cannot receive data anymore we just send it this . removeAllListeners ( 'data' ) ; var listener = this . request . bind ( this ) ; // keep track of the monitor listeners // for clean up server . _monitor [ this . id ] = listener ; // flag on the client for client list flags this . _client . monitor = true ; server . on ( 'monitor' , listener ) ; }
Send this client into a monitor state.
Send this client into a monitor state .