JSPM

  • Created
  • Published
  • Downloads 2454
  • Score
    100M100P100Q122135F

Express-like API for dealing with native clusters in Node >= .6

Package Exports

  • axe

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (axe) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

axe

SHOW YOUR CLUSTER WHO'S BOSS

axe

install

npm install axe

not yet

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();