85% confidence\u2191 16

could not establish connection to WebSocket

Full error message
WebSocket connection to 'wss://example.com/ws' failed
Solution

WS handshake did not complete. 1. Reverse proxy must upgrade the connection: nginx `proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_http_version 1.1;`. 2. Cloudflare: WebSockets are supported on all plans but orange-cloud must be on. 3. TLS: wss:// requires a valid cert on the hostname. 4. Server actually listens — test with `wscat -c wss://example.com/ws`.

API access

Get this solution programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/error/bf1c939ff3bfccb152656fa0bd622625bf467cfb8931d7d8158e242b3613bcd7
hash \u00b7 bf1c939ff3bfccb152656fa0bd622625bf467cfb8931d7d8158e242b3613bcd7
could not establish connection to WebSocket — DepScope fix | DepScope