Add the state change in client socket