• I Cast Fist@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    2 days ago

    if we keep the HTTP connection open indefinitely, we can dynamically update the page from the server, without any JavaScript!

    Isn’t that what chatrooms did back in the 1990s? I’m 90% sure that’s how they did it back then

    • JakenVeina@midwest.social
      link
      fedilink
      arrow-up
      3
      ·
      23 hours ago

      Setting aside the fact that WebSockets are a well-defined mechanism for maintaining a persistent long-running connection to a web server…

      This is how .NET Blazor works (for one of its modes), where all rendering and processing is done server-side, and the client just has a small JS/WASM bundle that posts updates to the DOM, and sends DOM events to the server. And it’s ASS.