xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Opened 5 years ago

Closed 5 years ago

Last modified 17 months ago

#1510 closed enhancement (fixed)

add path option to html5 client

Reported by: Rob Lemley Owned by: Rob Lemley
Priority: minor Milestone:
Component: html5 Version: trunk
Keywords: Cc:


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.

Attachments (1)

websocket-path.patch (1.1 KB) - added by Antoine Martin 5 years ago.
patch to add a path to the websocket uri

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by Antoine Martin

Attachment: websocket-path.patch added

patch to add a path to the websocket uri

comment:1 Changed 5 years ago by Antoine Martin

Owner: changed from Antoine Martin to Rob Lemley

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).

comment:2 Changed 5 years ago by Rob Lemley

Yes that works great! Thanks!

comment:3 Changed 5 years ago by Antoine Martin

Resolution: fixed
Status: newclosed

Thanks for testing, merged in r15795. Closing.

comment:4 Changed 17 months ago by migration script

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

Note: See TracTickets for help on using tickets.