fixed #2142 -- passing in cached (pre-required) redis module into socket.io so it uses the same redis module... why? who bloody knows.

This commit is contained in:
Julian Lam
2014-09-25 11:53:46 -04:00
parent 1a18bf22aa
commit 5a36c33fac
2 changed files with 5 additions and 8 deletions

View File

@@ -82,7 +82,10 @@ Sockets.init = function(server) {
sub = database.connect(),
client = database.connect();
// "redis" property needs to be passed in as referenced here: https://github.com/Automattic/socket.io/issues/808
// Probably fixed in socket.IO 1.0
config.store = new RedisStore({
redis: require('redis'),
redisPub : pub,
redisSub : sub,
redisClient : client