Be JSON-RPC client/server at the same time