Skip to content

Instantly share code, notes, and snippets.

@andrewshell
Created June 29, 2015 17:55
Show Gist options
  • Save andrewshell/66b6cdf7880d8c022c1d to your computer and use it in GitHub Desktop.
Save andrewshell/66b6cdf7880d8c022c1d to your computer and use it in GitHub Desktop.
River4 addToRiver callback to publish itemFromParser to Redis pub/sub
var redis = require("redis"),
client = redis.createClient();
client.publish('river4.itemFromParser', JSON.stringify(itemFromParser));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment