code: def run(self):
          
          if self.click_events:
              self.command_endpoint.start()
          for j in io.JSONIO(self.io).read():
              for module in self.modules:
                  module.inject(j)
docs: Run main loop.