MyDB automatic reconnection plugin
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
History.md
README.md
index.js
package.json

README.md

mydb-reconnect

MyDB automatic reconnection plugin

How to use

var db = require('mydb')('/');
var reconnect = require('mydb-reconnect');

reconnect(db, { connectTimeout: 5000 });

API

Reconnect(db, opts)

Options:

  • retryTimeout how long to wait before reconnection attempts (10000)
  • connectTimeout how long after a connection attempt to give up (10000)