Skip to content

Instantly share code, notes, and snippets.

@shubik
Created June 6, 2013 18:42
Show Gist options
  • Save shubik/5723868 to your computer and use it in GitHub Desktop.
Save shubik/5723868 to your computer and use it in GitHub Desktop.
Using RedisStore with Socketio
var RedisStore = require('socket.io/lib/stores/redis'),
pub = redis.createClient(),
sub = redis.createClient(),
cmd = redis.createClient();
io.set('store', new RedisStore({
redisPub: pub,
redisSub: sub,
redisClient: cmd
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment