Socket
Book a DemoInstallSign in
Socket

mydb-reconnect

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mydb-reconnect

reconnection module for mydb

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

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)

FAQs

Package last updated on 01 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts