Connection gettting failed repeatedly
I am using the latest release of code-server released yesterday and the connection is failing again and again. Also, I have no internet issues and I have tested on different networks as well.
Attached is the screenshot which I am getting

Is this on a remote server or your local instance?
The same incident occurs to me, on a remote server, sometimes it connects quickly, others if it takes or does not.
I'm not able to replicate this, might be a QoS issue with your ISP?
I'm seeing this too with codercom/code-server@sha256:e614b21e92593483d379d6a6bac77f283f988ec59207cd224a8ad6272c0f7208
Might be related to #1147, #442, #797
I was having this issue when my VSCode instance was behind a Traefik reverse-proxy instance. When I exposed the VSCode container's port 8080 directly, the websocket seemed to connect fine.
For full environment reference, I'm on Docker engine Server Version: 19.03.1, running on Windows Server 2019, with LCOW enabled (Linuxkit version 0.6+ , commit: ddb0fa509e6163bfbd71e9114ce8170b0a53c4fa), Traefik running with the nanoserver image, and VSCode running with the linux image via LCOW
EDIT: I switched back to using Traefik proxy and I can no longer reproduce this issue 🤔
I see this too with traefik, I am wondering if the websocket token is messed up. I can't tell though because it seems verbose in the latest build are broken.
I think this might actually be traefik specific. It seems to work with nginx.
I think it might be related to: https://github.com/containous/traefik/issues/5533#issuecomment-553823512
If this is still a problem, please feel free to reopen.