go-binance icon indicating copy to clipboard operation
go-binance copied to clipboard

Cannot use web-sockets with a proxied connection

Open nikhilsaraf opened this issue 1 year ago • 0 comments

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.

nikhilsaraf avatar Dec 01 '22 05:12 nikhilsaraf