node.js - How to check socket is alive (connected) in socket.io with multiple nodes and socket.io-redis -


i using socket.io multiple nodes, socket.io-redis , nginx. follow guide: http://socket.io/docs/using-multiple-nodes/

i trying do: @ function (server site), want query socketid socket connected or disconnect

i tried io.of('namespace').connected[socketid], work current process ( mean can check current process only).

anyone can me? advance.

how can check socket alive (connected) socketid tried namespace.connected[socketid], work current process.

as said, separate process means sockets registered on process first connected to. need use socket.io-redis connect nodes together, , can broadcast event each time client connects/disconnects, each node has updated real-time list of clients.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -