[W3CWebSocket] Connection failed when urls start with `wss://`
lewispham opened this issue · comments
Lewis Pham commented
My websocket server is served under an nginx reverse proxy with ssl. When I tried to connect to the nginx proxy with W3CWebSocket
client then the connection is always closed with reason connection failed
. No connection is established. But when I tried to connect directly with the websocket server then it works fine. I had checked nginx logs and there is no logs at all. So it looks like the connection never reaches the reverse proxy.
Lewis Pham commented
Closing this issue as I had forgot to pass the tlsOptions
into the request. But there should be a better error message though.