Force reconnection to MongoDB

Hi, two weeks ago I asked here how to force the reconnection with realm when I lost and recovered the internet connection. The answer worked correctly How do I reconnect to MongoDB Atlas without having to wait 5 minutes?, the problem is that since the last version of realm(1.4.0) it no longer works to use pause() and resume(), is there another way to do it?