Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Automattic/mydb-reconnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository is no longer maintained

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)