rippled
|
Public Member Functions | |
virtual std::optional< Json::Value > | getMsg (std::chrono::milliseconds const &timeout=std::chrono::milliseconds{ 0})=0 |
Retrieve a message. More... | |
virtual std::optional< Json::Value > | findMsg (std::chrono::milliseconds const &timeout, std::function< bool(Json::Value const &)> pred)=0 |
Retrieve a message that meets the predicate criteria. More... | |
virtual Json::Value | invoke (std::string const &cmd, Json::Value const ¶ms={})=0 |
Submit a command synchronously. More... | |
virtual unsigned | version () const =0 |
Get RPC 1.0 or RPC 2.0. More... | |
Definition at line 33 of file WSClient.h.
|
pure virtual |
Retrieve a message.
Implemented in ripple::test::WSClientImpl.
|
pure virtual |
Retrieve a message that meets the predicate criteria.
Implemented in ripple::test::WSClientImpl.
|
pure virtualinherited |
Submit a command synchronously.
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.
cmd | The command to execute |
params | Json::Value of null or object type with zero or more key/value pairs. |
Implemented in ripple::test::WSClientImpl, and ripple::test::JSONRPCClient.
|
pure virtualinherited |
Implemented in ripple::test::WSClientImpl, and ripple::test::JSONRPCClient.