Websocket "'502 Bad Gateway' caused by: dial tcp connect: connection refused"

This says the connection is being actively refused. Does this server required extra configuration. Is it actually bound on the referenced ip address. Does it have its own logs to see what happens to the connection.

Standalone is it using https? You service url is plain http.