Bi-directional JSON-RPC 2.0 for ZeroMQ
This is the ordinary way for people to make remote call. A server could be connected by multiple clients,
clientId will be passed when a call was received to provide a way for server to identify where those calls are from.
// SERVER SIDEvar zRPC = ;var path = "ipc://foobar"; // or tcp://host:portvar server = zRPC;server;// or later bindvar server = ;server;server;// CLIENT SIDEvar client = zRPC;client;// or later connectvar client = ;client;client;
zmq-jsonrpc support RPC call from server side to client side, but you have to know
clientId from previous client-side calls.