rundfunk

Rundfunk is zero-conf distributed event emitter

npm install rundfunk
4 downloads in the last month

Rundfunk

Rundfunk is zero-conf distributed pubsub build using polo and http It's available through npm:

npm install rundfunk

Usage

var rundfunk = require('rundfunk');
var funk = rundfunk();

funk.subscribe('hello', function(message) {
    console.log(message);
});

// wait a bit and then publish something

setTimeout(function() {
    funk.broadcast('hello', {hello:'world'});    
}, 100);

That's it! Try running the above example in a couple of processes and you should see that it's freakin' distributed!

License

MIT

npm loves you