Created
June 6, 2013 18:42
-
-
Save shubik/5723868 to your computer and use it in GitHub Desktop.
Using RedisStore with Socketio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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