def connect(self, register=False): """Connect to the server and set up the stream. Set `self.stream` and notify `self.state_changed` when connection succeeds. Additionally, initialize Disco items and info of the client. """ Client.connect(self, register) if register: self.stream.registration_callback = self.process_registration_form
def connect(self, register = False): """Connect to the server and set up the stream. Set `self.stream` and notify `self.state_changed` when connection succeeds. Additionally, initialize Disco items and info of the client. """ Client.connect(self, register) if register: self.stream.registration_callback = self.process_registration_form