set ready to false if socket.io disconnect event received