mattcg / socks5-https-client

SOCKS v5 HTTPS client implementation in JavaScript for Node.js.
186 stars 28 forks source link

Added export of Agent to allow using HTTP keep-alive #20

Closed JuFil closed 4 years ago

JuFil commented 7 years ago

When using HTTP keep-alive, one must use the same instance of the Agent class for multiple requests. Therefore, Agent must be exported. Together with the changes on socks5-client, this enables using HTTP keep-alive when using a SOCKS5 proxy and TLS.

mattcg commented 4 years ago

Sorry this took so long.