Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
storm-drpc-node
Advanced tools
Apache storm DRPC client for Node.js
Inspired by node-drpc, but the difference is that it can be optionally set keep alive, it does't need to createConnection in every execute()
call, and one can use it in the traditional or promise way as it like.
npm install storm-drpc-node
var DRPC = require('storm-drpc-node');
var drpcClient = new DRPC(options);
options
host: drpc cluster client host
port: drpc client port, default to 3772
timeout: TCP connection timeout time, default to null
keepAlive: keep connect alive, default to true
maxConnectCounts: the mximum connect counts, if the param keepAlive
is set true, client will reconnect to storm until the connect counts exceed the maxConnectCounts.
Events
error: emit when exception occurs
close: emit when connect close while conection is keepAlive
connect: emit when connection ready
timeout: timeout event listener
Methods
var DRPC = require('storm-drpc-node');
var client = DRPC({
host: '127.0.0.1',
port: 3772,
timeout: 1000,
keepAlive: true,
maxConnectCounts: 30
});
client.on('error', function(err) {
throw err;
});
// promise way
client.execute('spout-name', JSON.stringify(data))
.then(function(res) {
console.log(res);
})
.catch(function(err) {
throw err;
});
// callback way
client.execute('spout-name', JSON.stringify(data), function(err, res) {
if(err) throw err;
else console.log(res);
});
storm-drpc-node is licenced under the MIT licence.
FAQs
Apache storm DRPC client for Node.js
We found that storm-drpc-node 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.