Closed ni-vo closed 5 years ago
This is what you're looking for - https://github.com/TooTallNate/node-socks-proxy-agent
It's built on top of socks.
@JoshGlazebrook I'm looking to work with raw sockets, not a HTTP(s) library. Any suggestions?
That's beyond the scope of this module. You'd need to look at how the TLS protocol is implemented and do it yourself, or use a module that handles it for you.
I have figured it out myself. If anyone else is having trouble: https://github.com/nickvorie/node-socks-tls/blob/master/index.js
How would I create a TLS socket using this library? I can't connect on port 443.