rev

rev

A redis pubsub powered EventEmitter-like constructor

Showing:

Popularity

Downloads/wk

10

GitHub Stars

0

Maintenance

Last Commit

8yrs ago

Contributors

0

Package

Dependencies

1

Size (min+gzip)

1.1KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

node-rev

A (r)edis (ev)ent emitter for node.js.

Installing

Install with npm:

npm install rev

Usage

var Emitter = require('rev').Emitter
var emitter = new Emitter({ host : 'localhost', port : 6379, auth : 'xyz' })

function firstSub () {
  emitter.emit('some:event', { json : 'able' }, 'arguments only')
}

emitter.on('some:event', function (data, str) { /* ... */ }, firstSub)
emitter.pon('some:*', function (event, data, str) {
  // event is the matched event string
  // data and str are the arguments passed
})

Will work across multiple processes of course :) Uses redis pub/sub as the underlying transport.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100