def connect(self, username, checksum, password=None, key=None):
ws_url = (<EOL>f"<STR_LIT>"<EOL>f"<STR_LIT>"<EOL>)<EOL>if password:<EOL><INDENT>ws_url += f"<STR_LIT>"<EOL><DEDENT>elif key:<EOL><INDENT>ws_url += f"<STR_LIT>"<EOL><DEDENT>ARBITRATOR.create_connection(<EOL>self.proto, ws_url, self.headers["<STR_LIT>"], self.cookies<EOL>)<EOL>self.__conn_barrier.wait()<EOL>
Connect to websocket through asyncio http interface