I’m looking into transitioning a static frontend that uses RESTful service to get initial data + websockets to push new data updates to a Next.js site.
I’d like to replace all RESTful requests with server-side rendering, and then after the page is loaded, keep that data up to date with a separate websockets server (not Next).
Trying to understand best architecture for this. How to both pre-render data AND later make it client-side live-updated with websockets and local state.