How to check socket is alive (connected) in socket.io with multiple nodes and socket.io-redis
问题 I am using socket.io with multiple nodes, socket.io-redis and nginx. I follow this guide: http://socket.io/docs/using-multiple-nodes/ I am trying to do: At a function (server site), I want to query by socketid that this socket is connected or disconnect I tried io.of('namespace').connected[socketid] , it only work for current process ( it mean that it can check for current process only). Anyone can help me? Thanks for advance. 回答1: How can I check socket is alive (connected) with socketid I