update the socket.io method.