def __init__(self): self.event_loop = asyncio.get_event_loop() self.broadcast_tasks = dict() # parallel dict to broadcast_tasks that tracks stats self.local_hostname = get_local_host() self.stats_mgr = BroadcastWebsocketStatsManager( self.event_loop, self.local_hostname)
def __init__(self): self.event_loop = asyncio.get_event_loop() ''' { 'hostname1': BroadcastWebsocketTask(), 'hostname2': BroadcastWebsocketTask(), 'hostname3': BroadcastWebsocketTask(), } ''' self.broadcast_tasks = dict() self.local_hostname = get_local_host() self.stats_mgr = BroadcastWebsocketStatsManager(self.event_loop, self.local_hostname)