Answer the question
In order to leave comments, you need to log in
Communication with server every N seconds, react/redux?
Good afternoon! Please tell me how best to receive data if it is necessary that they come every N seconds (4-8)?
Now I'm running setInterval and every 5 seconds with new parameters it pulls the server, if something has changed the server sends data.
Is this approach correct?
Is webSocket suitable for this?
What are the alternatives
Thank you!
Answer the question
In order to leave comments, you need to log in
webSocket and let the server tell you if the data has changed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question