websocket-kit
websocket-kit copied to clipboard
How can I use this library to access it via socks5 proxy?
Is your feature request related to a problem? Please describe. I would like to make wss requests through a socks5 proxy. For example: user:[email protected]:10086
/// - proxy: Host component of the URI for the proxy server.
/// - proxyPort: Port on which to connect to the proxy server.
I only see these two parameters, how do I set them up and use them?
Describe the solution you'd like use it
Describe alternatives you've considered null
Pass the host components (auth details and hostname) in the proxy part and the port for the port argument
Pass the host components (auth details and hostname) in the
proxypart and the port for the port argument
proxy: "user:[email protected]" proxyPort: 10086
some error
NIOPosix.NIOConnectionError(host: "user:[email protected]", port: 10086, dnsAError: Optional(NIOCore.SocketAddressError.unknown(host: "user:[email protected]", port: 10086)), dnsAAAAError: Optional(NIOCore.SocketAddressError.unknown(host: "user:[email protected]", port: 10086)), connectionErrors: [])
Ah ok, so looks like we'd need to do some work to convert this automatically however if you convert the auth details to an HTTP Basic Auth header and pass that to proxyHeaders that should work
Do these proxy and proxyPort parameters really support a SOCKS proxy?
After filling them out, I am seeing it make a CONNECT request (AKA HTTP Proxy) to the socks port, which is the wrong protocol and does not succeed.