2026-01-11 17:48:35 -06:00
|
|
|
# Python imports
|
|
|
|
|
|
|
|
|
|
# Lib imports
|
|
|
|
|
|
|
|
|
|
# Application imports
|
2026-01-18 00:52:54 -06:00
|
|
|
from ..dto.base_event import BaseEvent
|
2026-01-11 17:48:35 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EmitDispatcher:
|
|
|
|
|
def __init__(self):
|
|
|
|
|
super(EmitDispatcher, self).__init__()
|
|
|
|
|
|
|
|
|
|
|
2026-01-18 00:52:54 -06:00
|
|
|
def emit(self, event: BaseEvent):
|
2026-01-11 17:48:35 -06:00
|
|
|
self.message_all(event)
|
|
|
|
|
|
2026-01-18 00:52:54 -06:00
|
|
|
def emit_to(self, controller: str, event: BaseEvent):
|
2026-01-11 17:48:35 -06:00
|
|
|
self.message_to(controller, event)
|