![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.
WebSockets Client library for the Sonic protocol
npm install sonic-js
var Client = require('sonic-js').Client;
var assert = require('assert');
var client = new Client('wss://0.0.0.0:443');
var query = {
query: '5',
config: {
"class" : "SyntheticSource",
"seed" : 1000,
"progress-delay" : 10
}
};
/* Client.prototype.run */
client.run(query, function(err, res) {
if (err) {
console.log(err);
return;
}
res.forEach(function(e) {
console.log(e);
});
client.close();
console.log('exec is done!');
});
/* Client.prototype.stream */
var stream = client.stream(query);
var done = 0;
stream.on('data', function(data) {
console.log(data);
});
stream.on('progress', function(p) {
done += p.progress;
console.log('running.. ' + done + "/" + p.total + " "+ p.units);
});
stream.on('output', function(out) {
console.log(out);
});
stream.on('metadata', function(meta) {
console.log('metadata: ' + JSON.stringify(meta));
});
stream.on('done', function() {
console.log('stream is done!');
});
stream.on('error', function(err) {
console.log('stream error: ' + err);
});
For a more complete example, check examples/example.js.
If you would like to contribute to the project, please fork the project, include your changes and submit a pull request back to the main repository.
MIT License
FAQs
ws client library for the Sonic protocol
The npm package sonic-js receives a total of 0 weekly downloads. As such, sonic-js popularity was classified as not popular.
We found that sonic-js 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.