There is a websocket server, and a page site, with processing websocket connections via js. Now any action is implemented in the following way: The answer comes from the server webscoket to the clients, and they have a certain animation (one for all). If the client reloads the page, he will immediately receive the final result of the animation.
How to make it so that when you restart the animation remained at a certain step by the user?
Suppose animation is the choice of a particular user from a set of users; here comes the jumps on users, and eventually one user will be selected. It is necessary that when the page is reloaded, the animation remains at a certain step, and the final selected user is not displayed.
How can this be implemented? Write each step of the animation in websocket and send it to all users every time?