Webpage remote desktop control method and device, equipment and medium

By establishing a long connection between the management and control platform and target browser and client, and using Netty and WebSocket for data transmission, the problems of high system resource occupation and poor compatibility in the existing technology are solved, and efficient remote control of web pages is achieved.

CN119271337APending Publication Date: 2025-01-07HANGZHOU DBAPPSECURITY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411487117.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

The existing remote desktop control methods for web pages rely on RDP and WebRTC technologies, and require the installation of specific remote control plug-ins or software, resulting in high system resource utilization, affecting performance, and incompatible with different systems.

Method used

By establishing a long connection between the management platform and the target browser and client, using Netty and WebSocket connection objects for data transmission, intercepting and forwarding the desktop image data of the target client in real time, completing remote control operations, reducing system resource usage and realizing different System compatibility.

Benefits of technology

Remote control can be achieved without installing specific remote control software, reducing system resource usage, improving compatibility between different systems and the operability of remote control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271337A_ABST
    Figure CN119271337A_ABST
Patent Text Reader

Abstract

The invention discloses a webpage remote desktop control method and device, equipment and a medium, and relates to the technical field of computers. Comprising the following steps: generating a remote control command according to a remote control request for a target client sent by a target browser, and obtaining a corresponding identity verification token generated by the target client according to the remote control command; obtaining an identity verification token from the target client, and establishing first long connection communication with a screen sharing tool in the target client through the identity verification token; sending the identity verification token to the target browser, so that the target browser establishes second long connection communication with the management and control platform through the identity verification token; and obtaining desktop image data of the target client intercepted by the screen sharing tool in real time through the first long connection communication, and forwarding the desktop image data to the target browser through the second long connection communication. Therefore, system resource occupation is reduced in the webpage remote control process, and compatibility among different systems is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a webpage remote desktop control method, device, equipment and medium. Background Art

[0002] Existing web remote desktop control methods mainly rely on RDP (Remote Desktop Protocol) and WebRTC (Web Real-Time Communication) technologies. These methods require the installation of specific remote control plug-ins or remote control software on the client, which has high requirements for the network environment, limiting their applicability on different networks and devices. In addition, since enterprises or companies have multiple terminal systems, different remote control plug-ins or remote control software need to be installed for different systems. At the same time, the remote control software will occupy a large amount of system resources when running, affecting the performance of the controlled end, especially on devices with limited resources, affecting the operation of commercial applications on the controlled end.

[0003] As can be seen from the above, how to reduce system resource usage during webpage remote control and meet the compatibility between different systems is a problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a webpage remote desktop control method, device, equipment and medium, which can reduce system resource usage during webpage remote control and meet the compatibility between different systems. The specific scheme is as follows:

[0005] In a first aspect, the present application provides a webpage remote desktop control method, which is applied to a management and control platform, comprising:

[0006] If a remote control request for a target client sent by a target browser is obtained, a remote control command is generated according to the remote control request, and the remote control command is sent to the target client so that the target client generates a corresponding identity authentication token according to the remote control command;

[0007] Acquire the identity authentication token from the target client, and establish a first persistent connection communication with a screen sharing tool in the target client through the identity authentication token;

[0008] Sending the identity authentication token to the target browser, so that the target browser establishes a second long connection communication with the management and control platform through the identity authentication token;

[0009] The desktop image data of the target client captured in real time by the screen sharing tool is acquired through the first long connection communication, and the desktop image data is forwarded to the target browser through the second long connection communication to complete the remote control operation.

[0010] Optionally, if a remote control request for a target client sent by a target browser is obtained, generating a remote control command according to the remote control request, and sending the remote control command to the target client so that the target client generates a corresponding identity authentication token according to the remote control command, the method further includes:

[0011] Initialize the local data forwarding connection object;

[0012] The data forwarding connection object includes several Netty connection objects and several WebSocket connection objects, different Netty connection objects are used to manage the first long connection communication corresponding to different clients, and different WebSocket connection objects are used to manage the second long connection communication corresponding to different browsers.

[0013] Optionally, establishing a first persistent connection communication with a screen sharing tool in the target client through the identity authentication token includes:

[0014] Establishing the first long connection communication between the local Netty connection object corresponding to the target client and the screen sharing tool in the target client through the authentication token;

[0015] Correspondingly, the target browser establishes a second long connection communication with the management and control platform through the identity authentication token, including:

[0016] The target browser establishes the second long connection communication with the WebSocket connection object corresponding to the target browser in the management and control platform through the identity authentication token.

[0017] Optionally, forwarding the desktop image data to the target browser through the second persistent connection communication includes:

[0018] Determine a target WebSocket connection object corresponding to the target browser from the plurality of WebSocket connection objects based on the identity authentication token;

[0019] The desktop image data is forwarded to the target browser using the second long connection communication corresponding to the target WebSocket connection object.

[0020] Optionally, the acquiring, through the first persistent connection communication, desktop image data of the target client captured in real time by the screen sharing tool includes:

[0021] Monitoring, through a message listener in the Netty connection object, whether there is data transmission in the first long connection communication corresponding to the Netty connection object;

[0022] If there is data transmission in the first long connection communication corresponding to the Netty connection object, the data in the first long connection communication is forwarded to the target WebSocket connection object to obtain the desktop image data of the target client captured in real time by the screen sharing tool.

[0023] Optionally, the forwarding the desktop image data to the target browser by using the second persistent connection communication corresponding to the target WebSocket connection object includes:

[0024] Monitoring whether there is data transmission in the target WebSocket connection object through a message listener in the target WebSocket connection object;

[0025] If there is data transmission in the target WebSocket connection object, the data in the target WebSocket connection object is forwarded to the target browser by using the second long connection communication corresponding to the target WebSocket connection object.

[0026] Optionally, the remote control request is a remote control request generated by the target browser for the target client by calling a preset remote control interface;

[0027] The preset remote control interface is an interface that can respond to a remote interface control instruction to open or close its own interface.

[0028] In a second aspect, the present application provides a webpage remote desktop control device, which is applied to a management and control platform, including:

[0029] A remote control request acquisition module, configured to generate a remote control command according to the remote control request if a remote control request for a target client sent by a target browser is acquired, and send the remote control command to the target client so that the target client generates a corresponding identity authentication token according to the remote control command;

[0030] A target client connection establishment module, used to obtain the identity authentication token from the target client, and establish a first long connection communication with a screen sharing tool in the target client through the identity authentication token;

[0031] A target browser connection establishment module, used for sending the identity authentication token to the target browser, so that the target browser establishes a second long connection communication with the management and control platform through the identity authentication token;

[0032] The remote control operation execution module is used to obtain the desktop image data of the target client captured in real time by the screen sharing tool through the first long connection communication, and forward the desktop image data to the target browser through the second long connection communication to complete the remote control operation.

[0033] In a third aspect, the present application provides an electronic device, including:

[0034] Memory, used to store computer programs;

[0035] The processor is used to execute the computer program to implement the aforementioned webpage remote desktop control method.

[0036] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program implements the aforementioned web page remote desktop control method when executed by a processor.

[0037] The present application provides a webpage remote control method applied to a management and control platform. First, if a remote control request for a target client sent by a target browser is obtained, a remote control command is generated according to the remote control request, and the remote control command is sent to the target client, so that the target client generates a corresponding identity authentication token according to the remote control command; then, the identity authentication token is obtained from the target client, and a first long connection communication is established with a screen sharing tool in the target client through the identity authentication token; the identity authentication token is sent to the target browser, so that the target browser establishes a second long connection communication with the management and control platform through the identity authentication token; finally, the desktop image data of the target client captured in real time by the screen sharing tool is obtained through the first long connection communication, and the desktop image data is forwarded to the target browser through the second long connection communication to complete the remote control operation.

[0038] As can be seen from the above, the present application establishes a connection with the target browser and the target client through the control platform, captures the desktop image data of the target client in real time through the screen sharing tool, and forwards the desktop image data to the target browser through the control platform, so that the target browser displays the desktop image of the target client through the web page, and the purpose of remote control can be achieved without installing specific remote control software. This can reduce system resource usage during webpage remote control and meet the compatibility between different systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0040] Figure 1 This is a flow chart of a webpage remote desktop control method applied to a management and control platform disclosed in this application;

[0041] Figure 2 A flowchart of a specific webpage remote desktop control method applied to a management and control platform disclosed in this application;

[0042] Figure 3 A schematic diagram of a webpage remote desktop control device disclosed in this application;

[0043] Figure 4 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] Existing web remote desktop control methods mainly rely on remote desktop protocol and WebRTC technology. These methods require the installation of specific plug-ins or software on the client and have high requirements for the network environment, which limits their applicability on different networks and devices. To this end, the present application provides a web remote desktop control solution that can reduce system resource usage during web remote control and meet the compatibility between different systems.

[0046] See also Figure 1 As shown, the embodiment of the present application discloses a webpage remote desktop control method, which is applied to a management and control platform, including:

[0047] Step S11: if a remote control request for a target client sent by a target browser is obtained, a remote control command is generated according to the remote control request, and the remote control command is sent to the target client, so that the target client generates a corresponding identity authentication token according to the remote control command.

[0048] In this embodiment, the target browser generates a remote control request for the target client by calling the preset remote control interface on the control platform, and sends the remote control request to the target client through the control platform. Wherein, the control platform can establish communication connections with multiple browsers at the same time, and the target browser is any one of the multiple browsers that establish communication connections with the control platform; correspondingly, the control platform can establish communication connections with multiple clients at the same time, and the target client is any one of the multiple clients that establish communication connections with the control platform. It should be noted that the preset remote control interface can respond to the remote interface control instruction to complete the opening or closing of its own interface. Specifically, in a specific implementation, the remote control request is that the target browser generates a remote control request for the target client by calling the preset remote control interface; wherein, the preset remote control interface is an interface that can respond to the remote interface control instruction to complete the opening or closing of its own interface. That is, the target client can be determined through the remote control request, and the remote control of the target client can be turned on or off at any time by controlling the preset remote control interface, which can enhance the operability of remote control.

[0049] It should be noted that before sending the remote control command to the target client so that the target client generates the corresponding authentication token according to the remote control command, the management platform needs to initialize the local data forwarding connection object so that the corresponding long connection communication can be established through the authentication token returned by the client. Among them, the management platform contains several data forwarding connection objects, and the target browser or target client corresponding to each data forwarding connection object is determined through the authentication token, and the corresponding long connection communication is managed and controlled through the data forwarding connection object. Specifically, in a specific implementation, if a remote control request for a target client sent by a target browser is obtained, a remote control command is generated according to the remote control request, and the remote control command is sent to the target client, so that the target client generates a corresponding authentication token according to the remote control command, and the method may also include: initializing a local data forwarding connection object; wherein the data forwarding connection object includes a plurality of Netty (a Java high-performance network application open source framework) connection objects and a plurality of WebSocket (a network communication protocol) connection objects, and different Netty connection objects are respectively used to control the first long connection communication corresponding to different clients through different identity identification tokens, and different WebSocket connection objects are respectively used to control the second long connection communication corresponding to different browsers through different identity identification orders. That is, by controlling the long connection communication of multiple data forwarding connection objects at the same time, multiple clients can be remotely controlled at the same time, and because the data forwarding connection object controls the corresponding long connection communication through the authentication token corresponding to the target client, the accuracy and security of the remote control process can be guaranteed.

[0050] Step S12: Acquire the identity authentication token from the target client, and establish a first persistent connection communication with a screen sharing tool in the target client through the identity authentication token.

[0051] In this embodiment, the initialization data forwarding connection object in the control platform establishes a first long connection communication corresponding to the screen sharing tool in the target client through the authentication token returned by the target client. Wherein, the authentication token is an information token that can characterize the identity of the target client, which can be determined according to the actual application situation. For example, the IP address of the target client can be used as the above authentication token in the embodiment of the present application. In addition, the screen sharing tool can use the VNC (Virtual Network Computing, virtual network console) tool to intercept and transmit the desktop image data of the target client. Specifically, the establishment of the first long connection communication with the screen sharing tool in the target client through the authentication token may include: the local Netty connection object corresponding to the target client is established with the VNC tool in the target client through the IP address of the target client; correspondingly, the target browser establishes a second long connection communication with the control platform through the authentication token, which may include: the target browser establishes the second long connection communication with the WebSocket connection object corresponding to the target browser in the control platform through the IP address of the target client.

[0052] It is understandable that, in addition to the above-mentioned VNC tool, any tool capable of capturing and transmitting the target client desktop image data can be used as the screen sharing tool, and no specific limitation is made herein.

[0053] Step S13: Send the identity authentication token to the target browser so that the target browser establishes a second long connection communication with the management and control platform through the identity authentication token.

[0054] In this embodiment, the target browser establishes a second long connection communication corresponding to the initialized data forwarding connection object in the management and control platform through the identity authentication token returned by the target client.

[0055] Step S14: acquiring the desktop image data of the target client captured in real time by the screen sharing tool through the first long connection communication, and forwarding the desktop image data to the target browser through the second long connection communication to complete the remote control operation.

[0056] In this embodiment, the control platform obtains the desktop image data of the target client captured in real time by the screen sharing tool through the first long connection communication, and determines the second long connection communication corresponding to the authentication token through the authentication token. So that the desktop image data can be forwarded to the target browser through the second long connection communication. Specifically, in a specific implementation, the forwarding of the desktop image data to the target browser through the second long connection communication can include: determining the target WebSocket connection object corresponding to the target browser from the several WebSocket connection objects based on the authentication token; and forwarding the desktop image data to the target browser using the second long connection communication corresponding to the target WebSocket connection object. That is, the first long connection communication is matched with the second long connection communication through the authentication token to ensure that the desktop image data can be accurately transmitted to the target browser, and the accuracy and stability of data transmission can be guaranteed.

[0057] As can be seen from the above, the embodiment of the present application establishes a connection with the target browser and the target client through the control platform, and the desktop image data of the target client is captured in real time through the screen sharing tool, and the desktop image data is forwarded to the target browser through the control platform, so that the target browser can display the desktop image of the target client through the web page, and the purpose of remote control can be achieved without installing specific remote control software. At the same time, the long connection communication is controlled by the data forwarding connection object in the control platform, which can ensure the stability of data transmission and realize remote control of multiple clients at the same time. In this way, the system resource usage can be reduced during the web page remote control process, and the compatibility between different systems can be met.

[0058] See also Figure 2 As shown, in order to improve the timeliness of desktop image data transmission, the embodiment of the present application provides a specific webpage remote desktop control method, which is applied to the management and control platform, including:

[0059] Step S21, initialize the local Netty connection object and WebSocket connection object.

[0060] Step S22: if a remote control request for a target client sent by the target browser is obtained, a remote control command is generated according to the remote control request, and the remote control command is sent to the target client, so that the target client generates a corresponding identity authentication token according to the remote control command.

[0061] Step S23: Establish a first long connection communication between the Netty connection object and the screen sharing tool in the target client through the authentication token, and send the authentication token to the target browser so that the target browser establishes a second long connection communication with the WebSocket connection object through the authentication token.

[0062] Step S24: using the Netty connection object to obtain the desktop image data of the target client captured in real time by the screen sharing tool through the first long connection communication, and using the second long connection communication corresponding to the target WebSocket connection object to forward the desktop image data to the target browser to complete the remote control operation.

[0063] In this embodiment, the first long connection communication is controlled by the Netty connection object, the first long connection communication is monitored by the message listener in the Netty connection object, and when data transmission is detected in the first long connection communication, the data is forwarded to the target WebSocket connection object determined in advance to obtain the desktop image data of the target client captured in real time by the screen sharing tool. The control platform uses the target WebSocket connection object to control the second long connection communication, monitors the target WebSocket connection object through the message listener in the target WebSocket connection object, and when data transmission is detected in the target WebSocket connection object, the data is forwarded to the target browser through the second long connection communication to complete the remote control operation. Specifically, in a specific implementation, obtaining the desktop image data of the target client captured in real time by the screen sharing tool through the first long connection communication may include: monitoring whether there is data transmission in the first long connection communication corresponding to the Netty connection object through a message listener in the Netty connection object; if there is data transmission in the first long connection communication corresponding to the Netty connection object, forwarding the data in the first long connection communication to the target WebSocket connection object to obtain the desktop image data of the target client captured in real time by the screen sharing tool.

[0064] Correspondingly, the forwarding of the desktop image data to the target browser by using the second long connection communication corresponding to the target WebSocket connection object may include: monitoring whether there is data transmission in the target WebSocket connection object through the message listener in the target WebSocket connection object; if there is data transmission in the target WebSocket connection object, forwarding the data in the target WebSocket connection object to the target browser by using the second long connection communication corresponding to the target WebSocket connection object. That is, the data transmitted in the long connection communication is monitored by the message listener in the data forwarding connection object, and the monitored data is forwarded to the corresponding target browser as soon as possible, so as to ensure the timeliness of data transmission.

[0065] Among them, the specific implementation process of the above steps S21 to S23 can refer to the corresponding content in the previous embodiment, and will not be repeated here.

[0066] As can be seen from the above, the embodiment of the present application establishes a long connection communication with the target browser and the target client through the control platform, intercepts the desktop image data of the target client in real time through the screen sharing tool, and monitors the data transmitted in the long connection communication through the message listener in the data forwarding connection object, and can forward the monitored data to the corresponding target browser as soon as possible, thereby achieving the purpose of forwarding the desktop image data to the target browser through the control platform, and can ensure the timeliness of the desktop image data transmission.

[0067] Accordingly, see Figure 3 As shown, the present application also provides a webpage remote desktop control device, which is applied to a management and control platform, including:

[0068] A remote control request acquisition module 11 is used to generate a remote control command according to the remote control request if a remote control request sent by a target browser to a target client is acquired, and send the remote control command to the target client so that the target client generates a corresponding identity authentication token according to the remote control command;

[0069] A target client connection establishing module 12, configured to obtain the identity authentication token from the target client, and establish a first long connection communication with a screen sharing tool in the target client through the identity authentication token;

[0070] A target browser connection establishing module 13, used for sending the identity authentication token to the target browser, so that the target browser establishes a second long connection communication with the management and control platform through the identity authentication token;

[0071] The remote control operation execution module 14 is used to obtain the desktop image data of the target client captured in real time by the screen sharing tool through the first long connection communication, and forward the desktop image data to the target browser through the second long connection communication to complete the remote control operation.

[0072] As can be seen from the above, the embodiment of the present application establishes a connection with the target browser and the target client through the control platform, and the desktop image data of the target client is captured in real time through the screen sharing tool, and the desktop image data is forwarded to the target browser through the control platform, so that the target browser displays the desktop image of the target client through the web page, and the purpose of remote control can be achieved without installing specific remote control software. In this way, the system resource usage can be reduced during the webpage remote control process, and the compatibility between different systems can be met.

[0073] In some specific implementations, the target client connection establishment module 12 may specifically include:

[0074] The first persistent connection communication establishing unit is used to establish the first persistent connection communication between the local Netty connection object corresponding to the target client and the screen sharing tool in the target client through the identity authentication token.

[0075] In some specific implementations, the target browser connection establishing module 13 may specifically include:

[0076] The second long connection communication establishing unit is used for the target browser to establish the second long connection communication with the WebSocket connection object corresponding to the target browser in the management and control platform through the identity authentication token.

[0077] In some specific implementations, the remote control operation execution module 14 may specifically include:

[0078] a target WebSocket connection object determining unit, configured to determine a target WebSocket connection object corresponding to the target browser from among the plurality of WebSocket connection objects based on the identity authentication token;

[0079] A second persistent connection communication data forwarding submodule, configured to forward the desktop image data to the target browser using the second persistent connection communication corresponding to the target WebSocket connection object;

[0080] A first long connection communication data monitoring unit is used to monitor whether there is data transmission in the first long connection communication corresponding to the Netty connection object through a message listener in the Netty connection object;

[0081] A first persistent connection communication data forwarding unit, configured to forward the data in the first persistent connection communication to the target WebSocket connection object if there is data transmission in the first persistent connection communication corresponding to the Netty connection object, so as to obtain the desktop image data of the target client intercepted in real time by the screen sharing tool;

[0082] Further, in some specific implementations, the second long connection communication data forwarding submodule may specifically include:

[0083] A target WebSocket connection object data monitoring unit, configured to monitor whether there is data transmission in the target WebSocket connection object through a message monitor in the target WebSocket connection object;

[0084] The target WebSocket connection object data forwarding unit is used to forward the data in the target WebSocket connection object to the target browser by using the second long connection communication corresponding to the target WebSocket connection object if there is data transmission in the target WebSocket connection object.

[0085] In some specific implementations, the webpage remote desktop control device may further include:

[0086] A data forwarding connection object initialization module is used to initialize a local data forwarding connection object;

[0087] The data forwarding connection object includes several Netty connection objects and several WebSocket connection objects, different Netty connection objects are used to manage the first long connection communication corresponding to different clients, and different WebSocket connection objects are used to manage the second long connection communication corresponding to different browsers.

[0088] Furthermore, the present application also discloses an electronic device. Figure 4This is a structural diagram of an electronic device 20 shown according to an exemplary embodiment, and the content in the figure cannot be regarded as any limitation on the scope of use of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the webpage remote desktop control method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0089] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0090] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0091] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the webpage remote desktop control method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0092] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the webpage remote desktop control method disclosed above. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the above embodiments, and no further description will be given here.

[0093] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0094] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0095] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0096] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0097] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A webpage remote desktop control method, characterized in that: Applied to the management and control platform, including: If a remote control request for a target client sent by a target browser is obtained, a remote control command is generated according to the remote control request, and the remote control command is sent to the target client so that the target client generates a corresponding identity authentication token according to the remote control command; Acquire the identity authentication token from the target client, and establish a first persistent connection communication with a screen sharing tool in the target client through the identity authentication token; Sending the identity authentication token to the target browser, so that the target browser establishes a second long connection communication with the management and control platform through the identity authentication token; The desktop image data of the target client captured in real time by the screen sharing tool is acquired through the first long connection communication, and the desktop image data is forwarded to the target browser through the second long connection communication to complete the remote control operation.

2. The webpage remote desktop control method according to claim 1, characterized in that: If a remote control request for a target client sent by a target browser is obtained, a remote control command is generated according to the remote control request, and the remote control command is sent to the target client so that the target client generates a corresponding identity authentication token according to the remote control command, the method further includes: Initialize the local data forwarding connection object; The data forwarding connection object includes several Netty connection objects and several WebSocket connection objects, different Netty connection objects are used to manage the first long connection communication corresponding to different clients, and different WebSocket connection objects are used to manage the second long connection communication corresponding to different browsers.

3. The webpage remote desktop control method according to claim 2, characterized in that: The establishing a first long connection communication with a screen sharing tool in the target client through the identity authentication token includes: Establishing the first long connection communication between the local Netty connection object corresponding to the target client and the screen sharing tool in the target client through the authentication token; Correspondingly, the target browser establishes a second long connection communication with the management and control platform through the identity authentication token, including: The target browser establishes the second long connection communication with the WebSocket connection object corresponding to the target browser in the management and control platform through the identity authentication token.

4. The webpage remote desktop control method according to claim 2, characterized in that: The step of forwarding the desktop image data to the target browser through the second long connection communication includes: Determine a target WebSocket connection object corresponding to the target browser from the plurality of WebSocket connection objects based on the identity authentication token; The desktop image data is forwarded to the target browser using the second long connection communication corresponding to the target WebSocket connection object.

5. The webpage remote desktop control method according to claim 4, characterized in that: The acquiring, through the first long connection communication, the desktop image data of the target client captured in real time by the screen sharing tool comprises: Monitoring, through a message listener in the Netty connection object, whether there is data transmission in the first long connection communication corresponding to the Netty connection object; If there is data transmission in the first long connection communication corresponding to the Netty connection object, the data in the first long connection communication is forwarded to the target WebSocket connection object to obtain the desktop image data of the target client captured in real time by the screen sharing tool.

6. The webpage remote desktop control method according to claim 5, characterized in that: The method of forwarding the desktop image data to the target browser by using the second persistent connection communication corresponding to the target WebSocket connection object includes: Monitoring whether there is data transmission in the target WebSocket connection object through a message listener in the target WebSocket connection object; If there is data transmission in the target WebSocket connection object, the data in the target WebSocket connection object is forwarded to the target browser by using the second long connection communication corresponding to the target WebSocket connection object.

7. The webpage remote desktop control method according to any one of claims 1 to 6, characterized in that: The remote control request is a remote control request generated by the target browser for the target client by calling a preset remote control interface; The preset remote control interface is an interface that can respond to a remote interface control instruction to open or close its own interface.

8. A webpage remote desktop control device, characterized in that: Applied to the management and control platform, including: A remote control request acquisition module, configured to generate a remote control command according to the remote control request if a remote control request for a target client sent by a target browser is acquired, and send the remote control command to the target client so that the target client generates a corresponding identity authentication token according to the remote control command; A target client connection establishment module, used to obtain the identity authentication token from the target client, and establish a first long connection communication with a screen sharing tool in the target client through the identity authentication token; A target browser connection establishment module, used for sending the identity authentication token to the target browser, so that the target browser establishes a second long connection communication with the management and control platform through the identity authentication token; The remote control operation execution module is used to obtain the desktop image data of the target client captured in real time by the screen sharing tool through the first long connection communication, and forward the desktop image data to the target browser through the second long connection communication to complete the remote control operation.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the webpage remote desktop control method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the webpage remote desktop control method according to any one of claims 1 to 7 is implemented.