SHOW YOUR CLUSTER WHO'S BOSS
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
README.md
axe.js
package.json

README.md

axe

axe

install

npm install axe

usage

var axe = require('axe');

axe.configure({
  mesh: true,
  autobalance: true,
});

axe.master(function(node, mesh){
  setInterval(function(){
    mesh.emit('ping');
  });
});

axe.worker(function(node, mesh){
  mesh.on('ping', function(){
    console.log(node.id + ' ' + pong);
  });
});

axe.on('start', function(){
  console.log('axe started on port ' + this.port);
});

axe.start();
var axe = require('axe');
axe.configure(require('config/axe.js'));
axe.master(require('master/main.js'));
axe.worker(require('worker/main.js'));
axe.start();