cluster-emitter
an EventEmitter to let workers & master communicate smoothly
var emitter = require('cluster-emitter');
emitter.on('event', function callback(){
});
emitter.once('event', function callbackOnce(){
});
emitter.removeListener('event', callback);
emitter.removeListener('event', callbackOnce);
emitter.removeAllListeners('event');
emitter.emit('event', 'arg0', 'arg1');
emitter.to(['self'].concat(_.map(cluster.workers, function(w){return w.process.pid;}))).emit('event', 'arg0', 'arg1');
emitter.to(['self', 'master'].emit('event', 'arg0', 'arg1');
emitter.to(['master']).emit('event', 'arg0', 'arg1');