Html over websocket in cw
Creating a react SPA to communicate with a cubicweb backend comes with its own difficulties. It adds a data layer to handle and tends to specialize development practice between frontend devs and backend devs. On the other hand, it offers end-users great UX (with many loaders nonetheless) and reactivity. Which is expected from modern apps. Traditional MPA (multiple-page applications) suffers from this lack of interactivity but are easier to develop (think form creation) and better for accessibility.
In the ruby and elixir community, there is a third approach to this dilemma that is emerging: Html over WebSockets. The idea is to create a connection between the server and the client. The clients send events to the server. The server computes and sends back the updated HTML. On the client side, it's instantaneous and it feels like a SPA. But it's still an MPA. No React, no Vue or whatever. The disadvantage is that servers have to handle many simultaneous connections over WebSockets.
Phoenix live view is a great example of implementation of this approach https://github.com/phoenixframework/phoenix_live_view. In django: https://sockpuppet.argpar.se/ https://turbo.hotwired.dev/
Other references : https://alistapart.com/article/the-future-of-web-software-is-html-over-websockets/
Question: what would it take to create this kind of reactive views in cubicweb?