code: def run(self):
          
          listener = EventServer(self.address, EventNotifyHandler)
          log.info("Event listener running on %s", listener.server_address)
          # Listen for events until told to stop
          while not self.stop_flag.is_set():
              listener.handle_request()
docs: Start the server on the local IP at port 1400 (default).
  
          Handling of requests is delegated to an instance of the
          `EventNotifyHandler` class.