problem description
On the page, starts and ends . The timing starts after clicking start and displays the timing length;
terminal 1 clicks to start, and the timing starts;
terminal 2 enters the page to obtain the time that has already started from the server, starting from the time obtained;
terminal 1 clicks to end, timing ends, and terminal 1 displays the final duration.
how does Terminal 2 know that the timing has ended and stopped, and that the final duration displayed is the same as Terminal 1?
the environmental background of the problems and what methods you have tried
now think of two options
scenario 1: front-end timer
10S;
there is a problem:
10S1210:00;210:011110:01;210:10S210:101;
Scheme 2:websocket real-time message push
121~2S
related codes
/ / Please paste the code text below (do not replace the code with pictures)
what result do you expect? What is the error message actually seen?