for example I want to tell the client that run a function on 10 o’clock.
now I send server time as a string to the client then decode it and compare it to server time on client and then run function when the time is okay , I just wanted to know if there is an easier way .
Does it have to run at 10 o’clock server time or client time? It’s important to estabilish this, as time zone differences may exists.
If the answer is “Server time”, what you’re doing is ok.
If the answer is “Client time”, you don’t need to send anything from the server
1 Like