HTML over WebSockets: real-time SPAs with barely any JavaScript
Summary
HTML over WebSockets presents a real-time SPA approach where the server renders HTML and pushes it to the client over a persistent WebSocket, reducing client-side JavaScript and API contracts. The article outlines the architecture, advantages and drawbacks, and compares it to HTTP and SSE options, while surveying frameworks that implement the pattern. It also discusses practical considerations like server load, latency, offline access, and SEO.