listening

0.1.0 • Public • Published

listening

Build Status Dependency Status devDependency Status

npm install listening --save
var listening = require('listening');
listening(8080, function(err, res) {
  // res will be true/false
});

Listening API follows server.listen API.

why

Why would we want to test for a listening server before starting our own server, can't we just try to .listen again later on?

The current answer for node 0.10.x is no you can't.

See the node.js issue.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i listening

Weekly Downloads

2

Version

0.1.0

License

ISC

Last publish

Collaborators

  • vvo