adshao / go-binance

A Go SDK for Binance API
MIT License
1.48k stars 663 forks source link

Cannot use web-sockets with a proxied connection #438

Closed nikhilsaraf closed 2 weeks ago

nikhilsaraf commented 1 year ago

I am using a NewProxiedClient with an http proxy running on my remote server.

It is trying to do the web-socket handshake with binance without going through the proxy.

I temporarily patched this to return the proxy address in the Dialer (not sure if this was done correctly) but now after this i get a different error -- I get an "Access violation".

The expectation is that if I use a NewProxiedClient that i don't need to do anything else and it should just work even for the web-socket handshake.

xyq-c-cpp commented 2 weeks ago

No response for a long time, close this issue