Stream based RPC in NodeJS