Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including defcon-redis-gateway with all npm packages installed. Try it out:

var defconRedisGateway = require("defcon-redis-gateway")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

defcon-redis-gateway v0.1.0

Receives and forwards events via redis pubsub

DEFCON Redis Gateway Plugin

Receives or forwards events via Redis pubsub

Prerequisits

  1. DEFCON
  2. redis

Installation

  1. '''cd $DEFCON_INSTALL_DIR'''
  2. '''npm install defcon-redis-gateway'''
  3. '''Enable and configure 'defcon-redis-gateway' in your DEFCON configuration file, e.g. '''json { "plugins": { "installed": [ "defcon-redis-gateway" ], "defcon-redis-gateway": { "subscribers": [ { "host": "localhost", "port": 6379, "db": 0, "patterns": ["defcon/www//error", "defcon/www//release"], "options": { "enable_offline_queue": false } } ], "publishers": [ { "host": "remotehost", "port": 6379, "db": 0, "channel": "defcon", "options": { "enable_offline_queue": false } } ] }
    } } '''
  4. Be careful not to create an infinite loop with your publish and subscribe configuration
  5. Restart defcon (you can do this via '''kill -s USRSIG2 ''' if you want zero downtime)
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free