tcp-ping icon indicating copy to clipboard operation
tcp-ping copied to clipboard

TCP ping utility for node.js

Results 5 tcp-ping issues
Sort by recently updated
recently updated
newest added

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},

![image](https://github.com/apaszke/tcp-ping/assets/39550067/d6d103b8-e4bc-4c3d-bd23-81b6af9207b0) is this the expected behavior?