Updating socket.io connection