dist/monitor-all.js
function(error) {
        if (connectError) {return;}
        if (error) {
          var err = {code:'CONNECT_ERROR', err: error};
          connectError = true;
          logger.error('start', err);
          return callback(err);
        }
        for (var name1 in t.monitors) {
          if (!t.monitors[name1].isConnected()) {
            return;
          }
        }
        t.set({started:true});
        t.connectListeners(true);
        callback();
      }
function(error) {
        if (connectError) {return;}
        if (error) {
          var err = {code:'CONNECT_ERROR', err: error};
          connectError = true;
          logger.error('start', err);
          return callback(err);
        }
        for (var name1 in t.monitors) {
          if (!t.monitors[name1].isConnected()) {
            return;
          }
        }
        t.set({started:true});
        t.connectListeners(true);
        callback();
      }
function ( error ) { if ( connectError ) { return ; } if ( error ) { var err = { code : 'CONNECT_ERROR' , err : error } ; connectError = true ; logger . error ( 'start' , err ) ; return callback ( err ) ; } for ( var name1 in t . monitors ) { if ( ! t . monitors [ name1 ] . isConnected ( ) ) { return ; } } t . set ( { started : true } ) ; t . connectListeners ( true ) ; callback ( ) ; }
Called when a monitor has connected
Called when a monitor has connected