cluster-call
RPC between nodejs cluster master and workers. Javascript native and fluent style.
Example - Basic
const cluster = const node = //Register a function named 'test' on "this node". //Master and workers may have same or different methodsnode a + b if clusterisMaster let worker1 = cluster //call method 'test' on worker1 else //call method 'test' on master
Example - Specify timeout
const cluster = const node = node 0 //Never resolves if clusterisMaster cluster else //specify a timeout value for this call. By default, timeout is 10 seconds