fastbus
fast and simple pubsub using redis
Getting Started
const FastBus = require('../lib');
const bus = FastBus.create({ prefix: 'bus', redis: { host: 'localhost', port: 6379, db: 0 } });
bus.subscribe('greeting', message => console.log('hello', message));
bus.subscribe('greeting', message => console.log('hi', message));
bus.publish('greeting', 'there');
bus.publish('greeting', 'everyone', true);
Contributing
test
$ npm test
build
$ npm run build
watch(continuous build)
$ npm start
may the SOURCE be with you...