tcp-ping
tcp-ping copied to clipboard
TCP ping utility for node.js
When 1 or more ping attempts fail, `avg` in the return object will be `NaN`, though `min` and `max` are returned correctly. As a backwards compatible way of addressing this,...
I wrapped the ping function inside a promise as below. const tcpping = opt => new Promise((resolve, reject) => tcpp.ping(opt, (err, data) => err ? reject(err) : resolve(data))); Perhaps native...
no matter what i try to do i am getting undefined response time. ``` tcp.ping({address:'google.com',attempts:5, timeout:150}, function(err, data){ console.log(data); }); ``` results: [{seq:0, time: undefined, err: {Object},
 is this the expected behavior?