npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

rundfunk

0.1.1

@mafintosh

npmRepoSnykSocket
Downloads:2
$ npm install rundfunk
DailyWeeklyMonthlyYearly

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