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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This module provides a utility function to wait until there is a TCP server listening on a given port.
m install strong-wait-till-listening
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) {