chain reaction in socket.io