![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
TCP ping utility for node.js. You can test if chosen address accepts connections at desired port and find out your latency. Great for service availability testing.
#####Why not ping
wrapper?
ping
tool (as soon as connection gets accepted, it's dropped and a new measure is conducted immediately), so there's no unnecessary waiting between requests.###Install
npm install tcp-ping
###Functions
#####ping(options, callback)
options
is an object, which may contain several properties:
localhost
)80
)callback
should be a function with arguments in node convention - function(err, data)
.
Returned data is an object which looks like this:
{
address: '46.28.246.123',
port: 80,
attempts: 10,
avg: 19.7848844,
max: 35.306233,
min: 16.526067,
results:
[
{ seq: 0, time: 35.306233 },
{ seq: 1, time: 16.585919 },
...
{ seq: 9, time: 17.625968 }
]
}
#####probe(address, port, callback)
callback
is a node style callback function(err, data)
, where data is true if the server is available and false otherwise.
###Usage
var tcpp = require('tcp-ping');
tcpp.probe('46.28.246.123', 80, function(err, available) {
console.log(available);
});
tcpp.ping({ address: '46.28.246.123' }, function(err, data) {
console.log(data);
});
FAQs
A ping utility using TCP connection
We found that tcp-ping demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.