mydb-reconnect

0.2.0 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i mydb-reconnect

Weekly Downloads

1

Version

0.2.0

License

none

Last publish

Collaborators

  • rauchg