socket.io
socket.io copied to clipboard
opts.redisPub/redisSub/redisClient instanceof RedisClient fails
I am trying to run socketio on a cluster and do
io.set('store', new socketio.RedisStore({
redisPub : redis.createClient(port, host, options),
redisSub : redis.createClient(port, host, options),
redisClient : redis.createClient(port, host, options)
}));
But in lib/stores/redis.js conditions fail for if (opts.redisPub instanceof RedisClient) etc. Any ideas?
instanceof will return false if the version of node_redis you used to create the redis object does not match the version that socket.io is checking against. You can verify this by running npm ls and checking the version numbers.
Thanks