mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-05 14:41:20 +00:00
Store all initial subscriptions
This commit is contained in:
parent
14db8cae62
commit
585cd35e48
@ -7,9 +7,9 @@ class EventHandlerBase:
|
||||
def __init__(self, anchor):
|
||||
self.messaging = Messaging()
|
||||
self.anchor = anchor
|
||||
self.messaging.subscribe(self.anchor)
|
||||
self.messaging.subscribe('reset')
|
||||
self.subscriptions = {self.anchor}
|
||||
self.subscriptions = set()
|
||||
self.subscribe(self.anchor)
|
||||
self.subscribe('reset')
|
||||
self.messaging.register_callback(self.event_handler_callback)
|
||||
|
||||
def event_handler_callback(self, msg_parts):
|
||||
|
Loading…
Reference in New Issue
Block a user