xpra icon
Bug tracker and wiki

Opened 4 weeks ago

Closed 3 weeks 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:

Description

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 4 weeks ago.
patch to add a path to the websocket uri

Download all attachments as: .zip

Change History (4)

Changed 4 weeks ago by Antoine Martin

Attachment: websocket-path.patch added

patch to add a path to the websocket uri

comment:1 Changed 4 weeks 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 3 weeks ago by Rob Lemley

Yes that works great! Thanks!

comment:3 Changed 3 weeks ago by Antoine Martin

Resolution: fixed
Status: newclosed

Thanks for testing, merged in r15795. Closing.

Note: See TracTickets for help on using tickets.