code: def connect(self):
          
          try:
              self.initialize_connection()
          except ChromecastConnectionError:
              self._report_connection_status(
                  ConnectionStatus(CONNECTION_STATUS_DISCONNECTED,
                                   NetworkAddress(self.host, self.port)))
              return
docs: Connect socket connection to Chromecast device.
  
              Must only be called if the worker thread will not be started.