pivotal-cf/strong-wait-till-listening

Name: strong-wait-till-listening

Owner: Pivotal Cloud Foundry

Description: Wait until a TCP server is listening on the given port.

Created: 2015-11-19 18:59:50.0

Updated: 2015-11-19 18:59:51.0

Pushed: 2015-11-19 20:09:38.0

Homepage: null

Size: 10

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

strong-wait-till-listening

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

Installation
m install strong-wait-till-listening
Usage
waitTillListening = require('strong-wait-till-listening');

TillListening(

// optional, defaults to 'localhost'
host: 'localhost',
port: 3000,
timeoutInMs: 20000,
// optional, defaults to 50
pollingIntervalInMs: 50

nction waitCallback(err) {



This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.