An utility for connecting EventEmitters via a pubsub. Includes Redis and in-memory backends, and a support of other systems can be added by implementing a very simple Connector wrapper.
Table of Contents
$ npm i emitter-pubsub-broker
const EmitterPubsubBroker =const connect = 'redis://localhost:6379' // or empty for in-memory backendlet broker = connectlet client = // anything that implements the interfaceclientbroker
API documentation is available online.
If you encounter a bug in this package, please submit a bug report to github repo issues.
PRs are also accepted.