[Access] Implement SubscriptionHandler
interface and CreateSubscriptionHandler
factory
#6584
Labels
SubscriptionHandler
interface and CreateSubscriptionHandler
factory
#6584
SubscriptionHandler Implementation
Based on the Draft design of new WebSockets, a new
SubscriptionHandler
interface should be implemented as part of the new WebSocket subscription system, building on the currentWebSocketController
. All requirements and relationships between components are described in the draft design document.The
SubscriptionHandler
interface abstracts the actual subscriptions managed by theWebSocketBroker
. ConcreteSubscriptionHandler
implementations will be created during theWebSocketBroker::subscribe
call, depending on thetopic
provided by the client. For example, the topicevents
will have anEventsSubscriptionHandler
implementation to manage event subscriptions.The supported topics include:
events
account_statuses
blocks
block_headers
block_digests
transaction_statuses
All concrete handlers will be implemented in separate tasks, based on this interface.
This issue includes implementing the interface and a factory method:
If possible, a basic implementation of the
SubscriptionHandler
interface should be provided, which will include common functionality for each concrete handler. This can be done after some of the handlers have already been implemented.The text was updated successfully, but these errors were encountered: