I had similar issue and the solution was pretty simple. I kept getting “connection lost” prompt and after checking the logs it was showing the issue is from “websocket”.
I am using “nginx proxy manager” to manage my proxy. I simply logged in nginx proxy manager there and enabled “web socket” and it started to work.
Also make sure the fqdn is set correctly