dist/monitor-all.js
function(callback) {
      var t = this, server = t.get('server'), router = Monitor.getRouter();
      callback = callback || function(){};

      // Call the callback, but don't stop more than once.
      if (!t.isListening) {
        return callback();
      }

      // Release resources
      t.connections.each(router.removeConnection, router);
      t.connections.reset();

      // Shut down the server
      t.isListening = false;
      server.close();

      // Send notices
      t.trigger('stop');
      return callback();
    }
function(callback) {
      var t = this, server = t.get('server'), router = Monitor.getRouter();
      callback = callback || function(){};

      // Call the callback, but don't stop more than once.
      if (!t.isListening) {
        return callback();
      }

      // Release resources
      t.connections.each(router.removeConnection, router);
      t.connections.reset();

      // Shut down the server
      t.isListening = false;
      server.close();

      // Send notices
      t.trigger('stop');
      return callback();
    }
function ( callback ) { var t = this , server = t . get ( 'server' ) , router = Monitor . getRouter ( ) ; callback = callback || function ( ) { } ; // Call the callback, but don't stop more than once. if ( ! t . isListening ) { return callback ( ) ; } // Release resources t . connections . each ( router . removeConnection , router ) ; t . connections . reset ( ) ; // Shut down the server t . isListening = false ; server . close ( ) ; // Send notices t . trigger ( 'stop' ) ; return callback ( ) ; }
Stop processing inbound monitor traffic

This method stops accepting new inbound monitor connections, and closes
all existing monitor connections associated with the server.

@method stop
@param callback {Function(error)} - Called when the server has stopped
 
The server has stopped

This event is fired after the server has stopped accepting inbound
connections, and has closed all existing connections and released
associated resources.

@event stop
Stop processing inbound monitor traffic