Skip to content
Discussion options

You must be logged in to vote

There is nothing wrong with running a timer every 10 seconds like you are. I use them for apps where websockets are not possible. Only issue I have run into is you need to make certain the first timer expires before setting another one. Too many timers running and you can see an impact on the browser rendering. I usually do a clearTimeout(myTimer) before calling another one.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by notflip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants