Description Usage Arguments See Also Examples
Reconnect to a MongoDB server. Calls mongo.disconnect and then attempts to re-establish the connection.
1 |
mongo |
(mongo) a mongo connection object. |
mongo.create
,
mongo.disconnect
,
mongo.
1 2 3 | mongo <- mongo.create()
if (mongo.is.connected(mongo))
mongo.reconnect(mongo)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.