socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

opts.redisPub/redisSub/redisClient instanceof RedisClient fails

Open shubik opened this issue 13 years ago • 2 comments

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?

shubik avatar Jun 03 '13 20:06 shubik

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.

Nibbler999 avatar Jun 03 '13 20:06 Nibbler999

Thanks

shubik avatar Jun 03 '13 21:06 shubik