Update API with Ajax

Hi, how i can autoupdate every 1000ms with ajax any div contain api and no break my code?

If you are doing it that quick, don’t use setInterval

Run a request, when the request completes start the next one.

Or collect events via other means and push that to the front end.

Which API’s are you trying to call?

Onlive member list with views on “realtime”

The Twitch API uses caching, so the closest you’ll get to updating viewer count in real-time would be by polling the API once a minute.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.