Submit a command synchronously.
Json::Value invoke( std::string const& cmd, Json::Value const& params = {});
The arguments to the function and the returned JSON are in a normalized format, the same whether the client is using the JSON-RPC over HTTP/S or WebSocket transport.
Name |
Description |
---|---|
|
The command to execute |
|
Json::Value of null or object type with zero or more key/value pairs. |
The server response in normalized format.