You’re really dumbing down what the guys built there to try and make a point, doing them a real disservice in the process. MOSH exists to handle latency and IP roaming, which means it can gracefully handle disconnects. They built a whole new UDP protocol to achieve it which requires a new server agent and different client.
Unless you’re suggesting a new browser engine we’re still constrained by the unique personalities of browsers and good old HTTP.
How many of your users are trying to use Discourse across terrible connections? How significant are occurrences you reference above? You’re still not talking about the specifics of the problem, just assumptions and oversimplifications on potential solutions.