Re:The future of web software is HTML over WebSockets
by rsj_hn on Friday February 26, 2021 @02:58PM
(#26279147)
Right, but you can see how in some use cases it's important for the data to be relatively fresh, then you have to choose between polling and server push.
Write the front end in something like Vue. When you catch an error from an axios call, update your data model by calling the server for updates.
When the data model updates, Vue will automagically update the DOM used by the browser.