redis-emitter

Redis pub/sub as an EventEmitter

npm install redis-emitter
4 downloads in the last week
4 downloads in the last month

RedisEmitter

RedisEmitter implement redis pub / sub as a EventEmitter.

Example

var RedisEmitter = require('redis-emitter').RedisEmitter

var emitter = new RedisEmitter()

emitter.on('a nice channel', function(data) {
  console.log('got data on a nice channel:', data)
})
var RedisEmitter = require('RedisEmitter').RedisEmitter

var emitter = new RedisEmitter()
emitter.emit('a nice channel', 'some data')

// Close the connection to redis
redis.end()

Install

npm install redis-emitter

Licence

MIT

npm loves you