Taking from the proposed PR (now closed by the original author) https://github.com/coders51/rabbitmq-stream-js-client/pull/194 Implement conditional reusing of cached connections