Clio develop
The XRP Ledger API server.
|
An interface to provide connection functionality for subscriptions. More...
#include <SubscriptionContextInterface.hpp>
Public Types | |
using | OnDisconnectSlot = std::function<void(SubscriptionContextInterface*)> |
Alias for on disconnect slot. | |
Public Member Functions | |
virtual void | send (std::shared_ptr< std::string > message)=0 |
Send message to the client. | |
virtual void | onDisconnect (OnDisconnectSlot const &slot)=0 |
Connect a slot to onDisconnect connection signal. | |
virtual void | setApiSubversion (uint32_t value)=0 |
Set the API subversion. | |
virtual uint32_t | apiSubversion () const =0 |
Get the API subversion. | |
![]() | |
Taggable (Taggable &&)=default | |
Taggable & | operator= (Taggable &&)=default |
BaseTagDecorator const & | tag () const |
Getter for tag decorator. | |
Additional Inherited Members | |
![]() | |
Taggable (util::TagDecoratorFactory const &tagFactory) | |
New Taggable from a specified factory. | |
An interface to provide connection functionality for subscriptions.
|
pure virtual |
Get the API subversion.
Implemented in web::ng::SubscriptionContext, and web::SubscriptionContext.
|
pure virtual |
Connect a slot to onDisconnect connection signal.
slot | The slot to connect. |
Implemented in web::ng::SubscriptionContext, and web::SubscriptionContext.
|
pure virtual |
Send message to the client.
message | The message to send. |
Implemented in web::ng::SubscriptionContext, and web::SubscriptionContext.
|
pure virtual |
Set the API subversion.
value | The value to set. |
Implemented in web::ng::SubscriptionContext, and web::SubscriptionContext.