Bi-directional RPC for node.js