redis-submux

    0.0.2 • Public • Published

    Subscriptions multiplexer for Redis

    NPM

    A small library that lets you subscribe your callbacks to Redis channels.

    Installation

    npm install redis-submux

    Usage

    var RedisSubMux = require('redis-submux');
    var redisSubMux = RedisSubMux({
        host: 'localhost',
        port: 6379'
    });
    
    var channel = 'test123';
    var callback = function(data) {
        console.log('data',data);
    }
    redisSubMux.subscribe(channel, callback);
    redisSubMux.unsubscribe(channel, callback);
    redisSubMux.unsubscribeAll(callback);
    

    Test

    npm test

    Install

    npm i redis-submux

    DownloadsWeekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • zoil