When node running in multiprocess, I would like every node process being able to access all the sockets info.
For example, in socket.io 0.9, I could access all sockets by using (use redisStore to store socket info):
sockets = io.sockets.clients(roomId)
But when I upgrade socket.io to 1.1, the io.sockets.clients api has been removed, so I use methods like this:
io.sockets.adapter.rooms[roomId]
The problem is, this method could not get sockets info the run in different process. This is how I initialize socket.io
redisAdapter = require('socket.io-redis')
io.adapter( redisAdapter({
host: settings.redis.server,
port: settings.redis.port
}) )
This works perfectly when run node in 1 process.
So do you know how can I access all the socket clients info under multiprocess?