strong-wait-till-listening

1.0.3 • Public • Published

strong-wait-till-listening

This module provides a utility function to wait until there is a TCP server listening on a given port.

Installation

$ npm install strong-wait-till-listening

Usage

var waitTillListening = require('strong-wait-till-listening');
 
waitTillListening(
  {
    // optional, defaults to 'localhost'
    host: 'localhost',
    port: 3000,
    timeoutInMs: 20000,
    // optional, defaults to 50
    pollingIntervalInMs: 50
  },
  function waitCallback(err) {
  }
);

/strong-wait-till-listening/

    Package Sidebar

    Install

    npm i strong-wait-till-listening

    Weekly Downloads

    564

    Version

    1.0.3

    License

    Artistic-2.0

    Last publish

    Collaborators

    • dhmlau
    • 0candy
    • hacksparrow