Answer the question
In order to leave comments, you need to log in
How to keep the data up to date?
There is data that is constantly updated on the server and written to a file (every 100 ms), you need to transfer it to the client side, so far I did it through the setInterval function (which should check them at the same interval), checking this JSON file, But I'm not sure how correct this is to solve the problem.
Server side
code: Client code:
I'm still green on this topic, so don't get mad if the question is simple.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question