code: def add_connection(self):
          
          if self.ssl_options:
  
              if not _HAS_SSL:
                  raise ImportError(
                      str(e) +
                      ', pyOpenSSL must be installed to enable SSL support with the Twisted event loop'
                  )
  
              self.connector = reactor.connectSSL(
                  host=self.endpoint.address, port=self.port,
                  factory=TwistedConnectionClientFactory(self),
                  contextFactory=_SSLContextFactory(self.ssl_options, self._check_hostname, self.endpoint.address),
                  timeout=self.connect_timeout)
          else:
              self.connector = reactor.connectTCP(
                  host=self.endpoint.address, port=self.port,
                  factory=TwistedConnectionClientFactory(self),
                  timeout=self.connect_timeout)
docs: Convenience function to connect and store the resulting
          connector.