TLDR Dev · ARTICLES & TUTORIALS
HTML OVER WEBSOCKETS: REAL-TIME SPAS WITH BARELY ANY JAVASCRIPT
Summary from the TLDR Dev newsletter
Building a Single-page Application usually requires JavaScript for rendering views, connecting to an API for JSON data, and managing two independent codebases. However, HTML over WebSockets is an alternative where the server sends pre-built HTML directly to the client. This method simplifies architecture by consolidating rendering logic on the server, reducing complexity, and improving real-time capabilities with a persistent bidirectional communication channel.