0.1.5 • Published 4 years ago

@fastcampus/fastbus v0.1.5

Weekly downloads
599
License
MIT
Repository
github
Last release
4 years ago

fastbus

fast and simple pubsub using redis

npm version

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');
// hello, there

bus.publish('greeting', 'everyone', true);
// hello, everyone
// hi, everyone

Contributing

test

$ npm test

build

$ npm run build

watch(continuous build)

$ npm start

may the SOURCE be with you...

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago