Open totaam opened 5 years ago
Some useful pointers:
Other html5 tickets worth looking into:
I'm not getting any help on this, and I still firmly believe that JavaScript is an awful language. So don't expect miracles.
All is not yet lost: there are two forks with potential:
https://github.com/andersevenrud/xpra-html5-client
For even greater performance and speed, might want to consider WASM and WebRTC
For even greater performance and speed, might want to consider WASM and WebRTC
FWIW:
Why not WebRTC?
Why not WebRTC?
Maybe one day: Xpra-org/xpra#1338
WebTransport is a much better fit: #143
Not sure this qualifies as modernizing, but switching to https://github.com/Benzinga/lz4js for lz4 greatly simplifies the codebase. From 7000 lines of unreadable JS to just 750.
I merged the 3 separate files by hand to avoid the requirejs
mess: we don't want asynchronous loading and the whole define
function incompatibility problems that spring up everywhere because of it.
And I added a utility decode
function to simplify calling into lz4 since we only use it for decompressing packets with the size header.
The code is old and ugly. We should take advantage of modern browser technologies to cleanup the code.