I have a website that receives and displays data from devices using HTTP functions. Currently, the page has to be refreshed to update what’s displayed. Is there a way to push new data to the page so that it constantly displays current data without having to be refreshed (maybe using hooks after the database is updated)?
Have a look at Wix Job Scheduler.
https://support.wix.com/en/article/corvid-scheduling-recurring-jobs
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#refresh
Or just set the page to refresh automatically.
https://support.wix.com/en/article/request-setting-a-page-to-refresh-automatically
https://www.wix.com/corvid/forum/community-discussion/refresh-certain-element-every-few-minutes
Thanks, the setInterval() function mentioned in the last link works great.