Skip to content

undoZen/is-tcp-on

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-tcp-on

check whether a tcp server could be connected

installation

npm i is-tcp-on

usage

var isTcpOn = require('is-tcp-on');
isTcpOn({
    port: 80,
    host: '127.0.0.1',
    timeout: 1000 // optional, default is 1000ms
})
.then(function () {
    // tcp server exists
}, function () {
    // can not connect to this tcp server
});

About

check whether a tcp server could be connected

Resources

License

Stars

Watchers

Forks

Packages

No packages published