def main():
try:<EOL><INDENT>host = sys.argv[<NUM_LIT:1>]<EOL>port = int(sys.argv[<NUM_LIT:2>])<EOL><DEDENT>except (IndexError, ValueError):<EOL><INDENT>print('<STR_LIT>'.format(sys.argv[<NUM_LIT:0>]))<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>try:<EOL><INDENT>wsproto_demo(host, port)<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>print('<STR_LIT>')<EOL><DEDENT>
Run the client.