Completely forget about network latency for now. Consider only the case where client (chrome browser) + server (elixir) are both on localhost over websocket.
One can imagine a Chrome tab as an “Elixir process”: we can send the Chrome tab messages to update the DOM; the Chrome tab sends us messages on GUI input (mouse movement/click, keyboard press), and results of evaluating arbitrary JS in the tab. [For this discussion, please do not derail with security issues; this is for local dev where we trust both sides.]
Is there a library for doing Elixir GUI like this? If so, where? If not, what is the flaw in this idea (no, latency can’t be the issue with everything on localhost). The key idea being:
Chrome tab = we send it msgs for updating DOM; it sends us mgs for GUI input
But lets leave it here, and don’t derail more your topic.