N00b's Programming Machine
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    redis-emitterpublic

    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

    Keywords

    none

    install

    npm i redis-emitter

    Downloadslast 7 days

    0

    version

    0.0.2

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar