Redis is awesome. But have you seen how one accomplishes pub/sub with the (otherwise incredibly awesome) redis module? Good ol' fashion event emitting/listening but using redis instead of node's native event emitter.
You need a redis instance. Configure it in your environment (replace host and port with your instance info)
$ export REDIS_URL=redis://127.0.0.1:6379/
$ npm install remitter --save
const Remitter = ;const thing = ;thing;// .... elsewhere in your app - maybe even another process!const thing2 = ;thing2;// ...some time laterthing;thing1;
$ echo "REDIS_URL=redis://127.0.0.1:6379/" >> test/test.env $ npm test