Contains functionality for handling the subscribe command. The subscribe method requests periodic notifications from the server when certain events happen.
More...
#include <Subscribe.hpp>
|
| struct | Input |
| | A struct to hold the input data for the command. More...
|
| struct | OrderBook |
| | A struct to hold the data for one order book. More...
|
| struct | Output |
| | A struct to hold the output data of the command. More...
|
|
| static RpcSpecConstRef | spec (uint32_t apiVersion) |
| | Returns the API specification for the command.
|
Contains functionality for handling the subscribe command. The subscribe method requests periodic notifications from the server when certain events happen.
For more details see: https://xrpl.org/subscribe.html
◆ SubscribeHandler()
Construct a new BaseSubscribeHandler object.
- Parameters
-
| sharedPtrBackend | The backend to use |
| amendmentCenter | The amendmentCenter to use |
| subscriptions | The subscription manager to use |
◆ process()
| SubscribeHandler::Result rpc::SubscribeHandler::process |
( |
Input const & | input, |
|
|
Context const & | ctx ) const |
Process the Subscribe command.
- Parameters
-
| input | The input data for the command |
| ctx | The context of the request |
- Returns
- The result of the operation
◆ spec()
Returns the API specification for the command.
- Parameters
-
| apiVersion | The api version to return the spec for |
- Returns
- The spec for the given apiVersion
◆ tag_invoke [1/2]
Convert output to json value.
- Parameters
-
| jv | The json value to convert to |
| output | The output to convert from |
◆ tag_invoke [2/2]
| Input tag_invoke |
( |
boost::json::value_to_tag< Input > | , |
|
|
boost::json::value const & | jv ) |
|
friend |
Convert json value to input.
- Parameters
-
| jv | The json value to convert from |
- Returns
- The input to convert to
The documentation for this class was generated from the following files:
- /__w/clio/clio/src/rpc/handlers/Subscribe.hpp
- /__w/clio/clio/src/rpc/handlers/Subscribe.cpp