We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to connect to wss://ws.okx.com:8443/ws/v5/public as a client and get error remote error: tls: handshake failure. Reason is this line
wss://ws.okx.com:8443/ws/v5/public
remote error: tls: handshake failure
gws/client.go
Line 59 in 5c407ad
option.TlsConfig.ServerName = URL.Hostname()
because URL.Host includes port number, while URL.Hostname() does not
URL.Host
URL.Hostname()
The text was updated successfully, but these errors were encountered:
Let's manually assign a value to the serverName first, we'll fix that later.
Sorry, something went wrong.
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
No branches or pull requests
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
gws/client.go
Line 59 in 5c407ad
because
URL.Host
includes port number, whileURL.Hostname()
does notThe text was updated successfully, but these errors were encountered: