theturtle32 / WebSocket-Node

A WebSocket Implementation for Node.JS (Draft -08 through the final RFC 6455)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[W3CWebSocket] Connection failed when urls start with `wss://`

lewispham opened this issue · comments

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.

Closing this issue as I had forgot to pass the tlsOptions into the request. But there should be a better error message though.