Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

vmware-archive/strong-wait-till-listening

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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) {
  }
);

About

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

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%