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 | Output |
| | A struct to hold the output data of the command. More...
|
|
|
using | OrderBook = rpc::spec::handlers::subscribe::OrderBook |
| | A struct to hold the data for one order book.
|
|
using | StreamType = rpc::spec::handlers::subscribe::StreamType |
| | A subscribable stream type.
|
|
using | Result = HandlerReturnType<Output> |
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 |
|
nodiscard |
Process the Subscribe command.
- Parameters
-
| input | The input data for the command |
| ctx | The context of the request |
- Returns
- The result of the operation
◆ tag_invoke
Convert output to json value.
- Parameters
-
| jv | The json value to convert to |
| output | The output to convert from |
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