List all active clients #2838
Closed
skrystosik
started this conversation in
General
Replies: 1 comment 4 replies
-
Hi @skrystosik , the driver does not keep track of existing clients. However, you can use ObjectSpace.each_object(Mongo::Client) { |client| pp client } |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
I need to list and iterate through all existing clients from ruby code. Is there any hook we can use for that? I'm checking documentation and sourcecode but can't find it.
Beta Was this translation helpful? Give feedback.
All reactions