drpcjs
Apache storm DRPC client for Node.js
Install
$ npm i drpcjs
Usage
const Drpcjs = ;const drpc = options;
options
host
: drpc cluster hostnameport
: drpc client port, default to 3772timeout
: TCP connection timeout time, default to nullkeepAlive
: keep connect alive, default to truemaxConnectCounts
: the maximum connect counts, if the paramkeepAlive
is set true, client will reconnect to storm until the connect counts exceed the maxConnectCounts.
events
error
close
connect
timeout
methods
;
Example
const drpcjs = ;const drpc = host: '127.0.0.1' ; drpc
Acknowledgements
Based on node-drpc
.