db.serverConfig.isConnected() availability in python


Is this available in python? I found this in node.js example

Apparently one sets connection timeouts to a suitably low number and wraps a simple operation in tryexcept and then one may infer whether the connection is valid. I think the point is that the MongoClient instance has no state separate from the server’s state, so the server must be polled in some fashion to determine “connectedness”.

And also I believe isConnected() has disappeared from node.js as well.