I saw this snippet:
io.sockets.on(\'connection\', function(socket) {
const subscribe = redis.createClient();
const publish = redis.cr
The reason I chose to use Redis Pub Sub with Socket.io in my Real Time Activity Stream project (http://blog.cloudfoundry.com/2012/06/05/node-activity-streams-app-2/) was because I wanted to have multiple web servers (instances on Cloud Foundry or dynos on Heroku). As far as I could see, Socket.io stores the messages in memory (of one webserver), so how it could possibly broadcast to clients which are connected to another webserver?
Check out the post and let me know if it helps