I figured out below two methods for updating the webpage on a real-time basis.
1) By using Notification.
2) By calling ajax at some interval.
Notification: You can send real-time notifications to a browser with the help of notification tools like firebase and update data accordingly by calling ajax again or using data received by the service worker.
Interval Ajax: Call ajax in an interval of 1min or in any frequency you want and match new data with the old one for updating changes.
So what's your opinion will these two work?
If yes then which one will work best and if not then what will be the best method for updating the page on a real-time basis without using node.js server.