code: def connect(self, frontend=None, commands=None):
          
          if frontend:
              self.__pipe_frontend = frontend
              self.__send_service_status_to_frontend()
          if commands:
              self.__pipe_commands = commands
docs: Inject pipes connecting the service to the frontend. Two arguments are
          supported: frontend= for messages from the service to the frontend,
          and commands= for messages from the frontend to the service.
          The injection should happen before the service is started, otherwise the
          underlying file descriptor references may not be handled correctly.