bin/proxy.js
function() {
      var config = {}
      registry.listServices(config, function(err, result) {
        if (err) return console.log(err);
        
        main.poll(registry, result, function(err) {
          if (err) return console.log(err);
        });
      })
    }
function() {
      var config = {}
      registry.listServices(config, function(err, result) {
        if (err) return console.log(err);
        
        main.poll(registry, result, function(err) {
          if (err) return console.log(err);
        });
      })
    }
function ( ) { var config = { } registry . listServices ( config , function ( err , result ) { if ( err ) return console . log ( err ) ; main . poll ( registry , result , function ( err ) { if ( err ) return console . log ( err ) ; } ) ; } ) }
now we have a reference to the registry running on the same machine
now we have a reference to the registry running on the same machine