Closed Andrey36652 closed 6 months ago
Let's manually assign a value to the serverName first, we'll fix that later.
Or use this commit hash for now
go get -u -v github.com/lxzan/gws@340485a22b22164fcea48ab8cc4e680a6f396100
Thanks for the fix, I was also having problems with okx
small problem
I'm trying to connect to
wss://ws.okx.com:8443/ws/v5/public
as a client and get errorremote error: tls: handshake failure
. Reason is this line https://github.com/lxzan/gws/blob/5c407ad8e047c7618f321de9b5180caf66002132/client.go#L59 should bebecause
URL.Host
includes port number, whileURL.Hostname()
does not