What's the correct route conf for a websocket?

Hi,

I’m trying to run a django/channels/daphne websocket. I believe I’ve got the backend set up correctly - at least, it works locally.

I’m trying to connect from the front end via JS:
var voteSocket = new WebSocket('wss://' + window.location.host + '/sync/votes/');
…which gives me a 404, presumably because the URI isn’t declared in routes.yaml

If I add that route though, I get a deploy error:
routes.key: 'wss://{default}/sync/votes/' scheme is not one of http, https

And if I change the frontend JS to use a https URL, the browser complains that:

The URL’s scheme must be either ‘ws’ or ‘wss’. ‘https’ is not allowed.

So… how do I resolve that conflict? How do I declare a route that can be used as a websocket?

I’m having the same issue, is there any news on that ?

The support told me that

We convert that for you. wss:// is not a valid path in our configurations.

I also had a 404 error and that meant that the request hit the server but I had not well configured the locations. Now everything is working fine. (Also with django / channels back and nuxt / vuejs front)