connect to urls containing a path component

Hi folks. Using autobohn-python with asyncio for a websocket client (not server), is there a way to connect to a uri that contains a subpath and paramaters? e.g. wss://

The server is hosted on AWS API Gateway and I cannot control/change the URI.

Following the asyncio echo client example from here, the loop.create_connection call blows up with:

socket.gaierror: [Errno 8] nodename nor servname provided, or not known

I tried to do my homework and I found the following related questions, but none seem to have an answer: question 1 , question 2.

Reason I am asking: I’m trying to port some existing code from the python websocket package to autobohn-python and then from there transition to / WAMP.

The websocket package that works with this uri is also using the loop.create_connection() function under the hood, but I cannot for the life of me parse out what they are doing differently. Source code here.

It feels like I must be missing something obvious somewhere.