PrevUpHomeNext

test::WSClient::invoke

Inherited from test::AbstractClient. Submit a command synchronously.

Synopsis
Json::Value
invoke(
    std::string const& cmd,
    Json::Value const& params = {});
Description

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.

Parameters

Name

Description

cmd

The command to execute

params

Json::Value of null or object type with zero or more key/value pairs.

Return Value

The server response in normalized format.


PrevUpHomeNext