主权项 |
1. A method comprising, by a web client:
receiving a packet, wherein the packet comprises graphics data, wherein the packet is encoded using run-length encoding, and wherein the packet is received from a Remote Desktop Protocol (RDP) server via a web-socket server; determining a run-length encoding algorithm for the packet based, at least in part, on a first color space associated with the packet; decompressing the packet based, at least in part, on the determined run-length encoding algorithm, wherein decompressing the packet comprises determining a plurality of commands to be performed on a canvas associated with the web client; and rendering the graphics data of the decompressed packet on the canvas using the plurality of commands, wherein the graphics data of the decompressed packet is associated with a graphical interface for viewing and interacting with a remote desktop. |