Xpra: Ticket #1510: add path option to html5 client

Please add the ability to pass the websocket path in as an option to the Client() constructor.

The use case is getting an Xpra client to run in another web application that uses its own websockets on other URLs and it would be nice to have Xpra follow the same pattern.

Wed, 03 May 2017 16:36:36 GMT - Antoine Martin: attachment set

patch to add a path to the websocket uri

Wed, 03 May 2017 16:39:24 GMT - Antoine Martin: owner changed

Rob Lemley: does the patch attached work for you?

You should be able to do:

client.host = "hostname.com;
client.port = 443;
client.ssl = true;
client.path = "xpra/somepath"

And all the websocket requests should now go to: wss://hostname.com:443/xpra/somepath. Is this what you're after?

The patch also applies the path to the URL used for streaming audio (mostly used for IE).

Thu, 04 May 2017 23:50:36 GMT - Rob Lemley:

Yes that works great! Thanks!

Fri, 05 May 2017 06:40:26 GMT - Antoine Martin: status changed; resolution set

Thanks for testing, merged in r15795. Closing.

Sat, 23 Jan 2021 05:26:16 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1510