code: def run(self):
          
          loop = asyncio.get_event_loop()
          if loop.is_closed():
              asyncio.set_event_loop(asyncio.new_event_loop())
              loop = asyncio.get_event_loop()
  
          txaio.start_logging()
          loop.run_until_complete(self.onConnect())
docs: start component