What might help is when the websocket times out maybe throw up a message that says, “Realtime editing connection could not connect, make sure your web server and / or proxy is configured to allow WebSockets.”
That would have allowed me to track down the issue in 5 minutes.