Closed edonosotti closed 1 year ago
Hey @edonosotti I'm sorry for the delay here. v11 switches the underlying http client to fetch-http2
which does not use a connection pool anymore so there isn't anything to close / destroy. I will update the readme.
Sorry I have to close this due to other spam. Please re-open as needed with questions / concerns.
The suggestions from #29 no longer work in 11.1.0.
client.destroy()
throws errorTypeError: client.destroy is not a function
.client._clients.destroy()
throws errorTypeError: Cannot read properties of undefined (reading 'destroy')
.The
README
file briefly mentions closing clients ("Once a client is closed you will not be able to use it again."), but no further information is given.