This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@fastcampus/fastbus
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

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...

Readme

Keywords

none

Package Sidebar

Install

npm i @fastcampus/fastbus

Weekly Downloads

8

Version

0.1.5

License

MIT

Unpacked Size

21.6 kB

Total Files

23

Last publish

Collaborators

  • heeok
  • hibiya
  • iolo
  • jaewon-noh
  • nodelay
  • rocio82
  • soomtong
  • starr9622
  • sujinnn
  • yoosoo