I added wrappers for ref() and unref() functions of the underlying socket which are required to allow the keepAlive option of an http(s) agent. Furthermore, I implemented setting the writable state properly after an end event has occurred.
Together with allowing direct instantiation of the socks5-http(s)-client agents, these changes enable using HTTP keep-alive when using a SOCKS5 proxy.
I added wrappers for ref() and unref() functions of the underlying socket which are required to allow the keepAlive option of an http(s) agent. Furthermore, I implemented setting the writable state properly after an end event has occurred. Together with allowing direct instantiation of the socks5-http(s)-client agents, these changes enable using HTTP keep-alive when using a SOCKS5 proxy.