CN112559213B - Application communication method, device, computer equipment and storage medium - Google Patents

Application communication method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN112559213B
CN112559213B CN202011509299.5A CN202011509299A CN112559213B CN 112559213 B CN112559213 B CN 112559213B CN 202011509299 A CN202011509299 A CN 202011509299A CN 112559213 B CN112559213 B CN 112559213B
Authority
CN
China
Prior art keywords
application
integrated
party application
private protocol
integrating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011509299.5A
Other languages
Chinese (zh)
Other versions
CN112559213A (en
Inventor
卢柱均
李利和
关华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yunzhijia Network Co ltd
Original Assignee
Shenzhen Yunzhijia Network Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yunzhijia Network Co ltd filed Critical Shenzhen Yunzhijia Network Co ltd
Priority to CN202011509299.5A priority Critical patent/CN112559213B/en
Publication of CN112559213A publication Critical patent/CN112559213A/en
Application granted granted Critical
Publication of CN112559213B publication Critical patent/CN112559213B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/544Remote

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to an application communication method, an application communication device, a computer device and a storage medium. The method comprises the following steps: receiving a triggering operation of a private protocol link of an integrated party application based on the integrated party application; responding to the triggering operation, and starting the integrated party application; establishing a network socket connection between the integrating party application and the integrated party application based on a network socket service; based on the network socket connection, mutual communication between the integrating party application and the integrated party application is achieved. By adopting the method, the mutual communication between the integrated party application and the integrated party application can be realized without relying on intermediate service program forwarding.

Description

Application communication method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an application communication method, an application communication device, a computer device, and a storage medium.
Background
With the development of computer technology, after integrating applications, related technicians send communication instructions to an integrated application through an integrated application to complete specified functions and actions. At present, the mode of sending a communication instruction to an integrated party application by an integrated party application is that after the integrated party application sends the communication instruction to an intermediate service program, the intermediate service program forwards the communication instruction to the integrated party application, and the integrated party application responds correspondingly according to the received communication instruction.
However, the current manner of sending communication instructions needs to rely on an intermediate service program, which affects the normal communication between the integrator application and the integrated application whenever there is a problem with the intermediate service program.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an application communication method, apparatus, computer device, and storage medium that do not rely on an intermediate service program.
An application communication method, the method comprising:
receiving a triggering operation of a private protocol link of an integrated party application based on the integrated party application;
responding to the triggering operation, and starting the integrated party application;
establishing a network socket connection between the integrating party application and the integrated party application based on a network socket service;
based on the network socket connection, mutual communication between the integrating party application and the integrated party application is achieved.
In one embodiment, the launching the integrated party application in response to the triggering operation includes:
responding to the triggering operation, submitting the private protocol link to an operating system;
analyzing the private protocol link through the operating system to obtain an analysis result;
and starting the integrated party application according to the private protocol in the analysis result and the address of the integrated party application at the terminal.
In one embodiment, the establishing a web socket connection between the integrator application and the integrand application based on the web socket service includes:
after the integrated party application is started, starting a network socket service through the integrated party application;
and establishing the network socket connection between the integrating application and the integrated application based on the network socket services respectively started by the integrating application and the integrated application.
In one embodiment, the method further comprises:
responsive to a write request for a private protocol registry of the integrated party application, presenting an interface for writing the private protocol registry;
the private protocol link for starting the integrated party application is generated based on the private protocol input in the interface and the address of the integrated party application local to the terminal.
In one embodiment, the integrated party application is a web application, and the integrated party application is a desktop application;
the receiving, based on the integrating party application, a trigger operation of a private protocol link to the integrating party application includes:
displaying a webpage corresponding to the application of the integrating party; the webpage comprises a private protocol link corresponding to the desktop application;
and receiving a triggering operation of the private protocol link.
In one embodiment, the web application is an enterprise management web application; the desktop application is an instant messaging client; the responding to the triggering operation, starting the integrated party application, comprising:
responding to the triggering operation, and starting the instant communication client;
the establishing a network socket connection between the integrating party application and the integrating party application based on the network socket service comprises the following steps:
based on the web socket service, establishing the web socket connection between the enterprise management web application and the instant messaging client.
An application communication device, the device comprising:
the receiving module is used for receiving a triggering operation of the private protocol link of the integrated party application based on the integrated party application;
the starting module is used for responding to the triggering operation and starting the integrated party application;
the connection module is used for establishing network socket connection between the integrating party application and the integrated party application based on the network socket service;
and the communication module is used for realizing the mutual communication between the integrated party application and the integrated party application based on the network socket connection.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
receiving a triggering operation of a private protocol link of an integrated party application based on the integrated party application;
responding to the triggering operation, and starting the integrated party application;
establishing a network socket connection between the integrating party application and the integrated party application based on a network socket service;
based on the network socket connection, mutual communication between the integrating party application and the integrated party application is achieved.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving a triggering operation of a private protocol link of an integrated party application based on the integrated party application;
responding to the triggering operation, and starting the integrated party application;
establishing a network socket connection between the integrating party application and the integrated party application based on a network socket service;
based on the network socket connection, mutual communication between the integrating party application and the integrated party application is achieved.
According to the application communication method, the device, the computer equipment and the storage medium, the integrated party application can be started by triggering the private protocol link of the integrated party application in the integrated party application, and a user does not need to manually start the corresponding integrated party application. The integrated party application and the integrated party application can communicate with each other directly through the network socket service without forwarding an intermediate service program, so that when the intermediate service program is problematic, interruption of the communication between the integrated party application and the integrated party application can be avoided, and the success rate of the communication between the applications is improved.
Drawings
FIG. 1 is a flow diagram of an application communication method in one embodiment;
FIG. 2 is a schematic diagram of a communication establishment procedure between an integrator application and an integrator application in one embodiment;
FIG. 3 is a flow chart illustrating steps of an application communication method in one embodiment;
FIG. 4 is a timing diagram of another embodiment of an application communication method;
FIG. 5 is a block diagram of an application communication device in one embodiment;
FIG. 6 is a block diagram of another embodiment of an application communication device;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, an application communication method is provided, and this embodiment is applied to a terminal by way of example, it will be understood that the terminal may be a mobile terminal, a computer, or a dedicated device. Wherein, mobile terminals such as mobile phones, tablet computers, etc. Computers such as desktop computers, notebook computers, and the like. Enterprise management specific devices such as service enquiry machines, etc. In this embodiment, the method includes the steps of:
step 102, receiving a trigger operation of private protocol link of the integrated party application based on the integrated party application.
The integrated party application is an application integrating the integrated party application and is used for calling the integrated party application. The integrated party application is an application called by the integrated party application. For ease of understanding, it is assumed by way of example that application B is embedded in application a, and a user may perform an operation in application a, for example, perform an operation of triggering a private protocol link for invoking application B, so that application B may be invoked, where application a is an integrator application, and application B is an integrated application.
The private protocol link is a link address containing the private protocol and the storage address of the integrated party application at the terminal.
In one embodiment, the integrating application may be a Web application (i.e., a Web application), a desktop application, or a light application (such as an applet) running in a manner of being attached to a platform.
In one embodiment, the integrated party applications may include, but are not limited to, desktop end applications.
Specifically, the integrator application stores a private protocol link of the integrator application. The integrating side application can display the private protocol link of the integrated side application, the user can trigger the private protocol link, and the terminal can receive the triggering operation of the private protocol link of the integrated side application based on the integrating side application.
Step 104, in response to the triggering operation for the private protocol link, starting the integrated party application.
Specifically, the terminal responds to the triggering operation of the private protocol link for the integrated party application, and searches the integrated party application for starting according to the storage address of the integrated party application in the private protocol link.
Step 106, establishing the network socket connection between the integrating side application and the integrated side application based on the network socket service.
Among them, web socket service, websocket service. Websocket is a protocol that can establish a full duplex communication connection with only one handshake. A web socket connection, i.e., websocket connection.
Specifically, the terminal may establish a network socket connection between the integrating application and the integrating application through respective network socket services of the integrating application and the integrating application.
And step 108, based on the network socket connection, realizing the mutual communication between the application of the integrating party and the application of the integrated party.
The integrated party application and the integrated party application are connected based on the network socket, and can send the instruction to the opposite party at the same time or not. That is, the integrating party application and the integrated party application may implement full duplex communication based on a network socket connection.
Specifically, based on the network socket connection, the integrated party application and the integrated party application can mutually transmit communication instructions so as to instruct the opposite party to complete specified functions and actions according to the communication instructions. The integrating side application and the integrating side application can also return the result of executing the communication instruction to the opposite side based on the network socket connection.
In one embodiment, the integrating application sends the operating instructions to the integrating application over a network socket connection. The integrated party application receives the operation instruction through the network socket connection and responds according to the operation instruction. For example, the integrating application sends an operation instruction for opening a dialog box of the integrating application to the integrating application through the network socket connection. The integrated party application receives an operation instruction for opening the self dialog box through the network socket connection, and opens the dialog box in response to receiving the operation instruction for opening the self dialog box.
In one embodiment, the integrating application receives the operation instruction returned by the integrating application through the network socket connection, and responds according to the operation instruction returned by the integrating application. For example, the integrated party application returns a notification instruction to the integrated party application via the web socket connection to notify the integrated party application that the integrated party application has opened its dialog box and is waiting to receive the next operation instruction to respond. At the moment, the next operation instruction can be sent to the integrated party application through the network socket connection on the integrated party application.
According to the application communication method, the integrated party application can be started by triggering the private protocol link of the integrated party application in the integrated party application, and a user does not need to manually start the corresponding integrated party application. The mutual communication between the application of the integrating party and the application of the integrated party can be realized directly through the network socket service without forwarding an intermediate service program, so that the mutual communication between the application of the integrating party and the application of the integrated party is prevented from being interrupted when the intermediate service program has a problem. Thereby improving the communication success rate between applications.
In one embodiment, in response to a triggering operation, launching an integrated party application includes: responding to triggering operation, and submitting the private protocol link to an operating system; analyzing the private protocol link through an operating system to obtain an analysis result; and starting the integrated party application according to the private protocol in the analysis result and the address of the integrated party application local to the terminal.
Wherein the private protocol is a communication protocol tailored for the application of the integrated party.
Specifically, the terminal responds to the triggering operation of the private protocol link on the application of the integrating party, submits the private protocol link to the operating system for analysis, and therefore the private protocol included in the private protocol link and the address of the application of the integrating party on the local side of the terminal are analyzed. The terminal can find the integrated party application according to the analyzed address of the integrated party application at the local terminal, and then start the integrated party application according to the analyzed private protocol.
In one embodiment, the private protocol may be a "cloudhub" or a character or string such as "a".
In one embodiment, the address applied by the integrated party at the terminal may be "E: \\QQSC Launcher. Exe", and the private protocol link may be "cloudhub: \\E: QQScLauncher. Exe".
In one embodiment, a user applies an input private protocol connection at an integrator, and triggers the "clodhub: \E: QQSCLauncher.exe" private protocol connection. And responding to the triggering operation aiming at the 'clodhub: \\E: QQScLauncher.exe' private protocol connection, resolving the address of the 'QQScLauncher.exe' under the 'E' disc of the terminal by an operating system, and opening the 'QQScLauncher.exe' application program by the 'clodhub' private protocol.
In the embodiment, the integrated party application can be started only by triggering the private protocol link of the integrated party application on the integrated party application, so that the process of manually starting the integrated party application by a worker is avoided. When the number of the applications of the integrated party to be started is large, the workload of staff can be effectively reduced.
In one embodiment, establishing a web socket connection between an integrator application and an integrand application based on a web socket service includes: after the integrated party application is started, starting a network socket service through the integrated party application; and establishing the network socket connection between the integrating application and the integrated application based on the network socket services respectively started by the integrating application and the integrated application.
Specifically, after the integrated party application is started, the integrated party application may itself start the web socket service. It may be appreciated that the integrating application also starts a web socket service, and the terminal may establish a web socket connection between the integrating application and the integrating application based on the web socket service respectively started by the integrating application and the integrating application.
In one embodiment, the integrating application may or may not simultaneously launch the respective web socket service with the integrating application.
In this embodiment, the communication connection between the integrated application and the integrated application can be established through the web socket connection established by the web socket service without forwarding an intermediate service program, such as a "background server" or a "time-sharing operating system background application". When the intermediate service program forwarding is problematic, the communication connection between the integrating-side application and the integrating-side application is not affected.
In one embodiment, the method further comprises: responsive to a write request for a private protocol registry of an integrated party application, presenting an interface for writing the private protocol registry; a private protocol link for launching the integrated party application is generated based on the private protocol entered in the interface and the address of the integrated party application local to the terminal.
The private protocol registry is a registry for registering private protocol connections of the integrated party application.
It will be appreciated that the private protocol registry contains instructions for launching the integrated party application. The private protocol link for starting the integrated party application can be generated on the terminal according to the private protocol for the integrated party application filled in the private protocol registry by the user and the address of the integrated party application local to the terminal.
Specifically, the terminal presents an interface for writing a private protocol registry in response to a writing request for the private protocol registry of the integrated party application. And filling the private protocol and the address applied to the local terminal by the integrated party into the interface of the private protocol registry by the user. The terminal may generate a private protocol link for launching the integrated party application based on the private protocol entered in the interface and the address of the integrated party application local to the terminal.
In this embodiment, the user can generate the private protocol link for starting the integrated party application by the terminal only by filling the private protocol for the integrated party application and the address of the integrated party application local to the terminal in the private protocol registry, so that the user is saved from writing a large amount of codes to realize the workload of automatically starting the integrated party application by the terminal.
In one embodiment, the integrating party application is a web application, and the integrating party application is a desktop application; receiving a trigger operation for a private protocol link of an integrated party application based on the integrated party application includes: displaying a webpage corresponding to the application of the integrating party; the webpage comprises private protocol links corresponding to the desktop application; a trigger operation for a private protocol link is received.
The webpage application is an application which is accessed through a webpage and does not need to be installed on a local terminal. The desktop application is an application installed on a local terminal.
It can be understood that the desktop application needs to be downloaded and installed in the local terminal, and after the application is installed, the desktop application can be accessed and operated by running the desktop application through the local terminal. The access operation of the webpage application is that the application can be directly accessed through the webpage without downloading and installing an application package in the local terminal.
Specifically, the terminal displays a webpage corresponding to the integrated party application, and the displayed webpage corresponding to the integrated party application contains a private protocol link of the desktop application. The user may trigger a private protocol link contained on the web page. The terminal can receive the triggering operation of private protocol link of the desktop application by the user based on the webpage application.
In this embodiment, the user only needs to trigger the private protocol link of the desktop application on the web page, and the terminal may receive the triggering operation of the private protocol link of the desktop application based on the web page application. In the process, the process of forwarding an intermediate service program is omitted, and the time cost is reduced.
In one embodiment, the web application is an enterprise management web application; the desktop application is an instant messaging client; in response to the triggering operation, launching the integrated party application, comprising: responding to the triggering operation, and starting the instant communication client; establishing a web socket connection between an integrator application and an integrator application based on a web socket service, comprising: based on the web socket service, a web socket connection between the enterprise management web application and the instant messaging client is established.
The enterprise management web application is used for managing enterprise related business. The instant messaging client is a desktop application for instant messaging.
Specifically, the user triggers a private protocol link of the instant messaging client included in the enterprise management web application. And the terminal responds to the triggering operation of the private protocol link aiming at the instant messaging client to start the instant messaging client. Further, the terminal establishes a web socket connection between the enterprise management web application and the instant messaging client based on the web socket service.
In one embodiment, as shown in FIG. 2. Enterprise management web application 202 contains proprietary protocol links for instant messaging clients. The private protocol link may be bound to at least one instant messaging user of the instant messaging client, for example, may be bound to all or a portion of the instant messaging users in the dashed box 206 (it may be appreciated that "444", "111", etc. in 206 all belong to the icons of the instant messaging users), respectively. Assuming that the user triggers the icon 208 of "big white" of the instant messaging user, the bound private protocol link may be triggered, so that the instant messaging client may be triggered to be started, the login interface 204 of the instant messaging client is displayed on the terminal screen, and login is performed according to the account name and the password. Further, the terminal establishes a web socket connection between the enterprise management web application 202 and the instant messaging client based on the web socket service. Through a web socket connection, the enterprise management web application 202 and the instant messaging client can implement full duplex communication.
In one embodiment, fig. 2 is still an example. After the user logs in the instant messaging client, the chat window corresponding to the "big white" 208 is opened according to the "big white" of the instant messaging user bound on the triggered private protocol link. The enterprise management web application 202 sends chat instructions to the instant messaging client over a web socket connection. The chat instruction is an instruction carrying chat information. The instant messaging client receives the chat instruction through the network socket connection, and parses out the chat information in the chat instruction, so as to display the chat information required to be transferred by the enterprise management webpage application 202 in the chat window corresponding to the "white" 208.
In this embodiment, the user only needs to trigger the private protocol link of the instant messaging client on one webpage, so that the network socket connection can be established on the webpage for the instant messaging client. In the whole process, the user does not need to manually start the instant messaging client, and the intermediate service program is not required to forward, so that the mutual communication between the webpage application and the instant messaging client is realized.
In one embodiment, as shown in the flow chart of the application communication step of fig. 3, the web application stores a private protocol link (URL protocol) of the desktop application. If the private protocol link of the desktop application stored on the web application generates a trigger operation, the terminal responds to the trigger operation of the private protocol link on the web application, submits the private protocol link to an operating system (for example, a Windows operating system) for analysis, and an analysis result is obtained. And the operating system on the terminal starts the desktop application according to the private protocol in the analysis result and the address of the desktop application at the local terminal. After the desktop application is started, the terminal starts a web socket service (Websocket service) through the desktop application. And the terminal connects the web socket service of the web application with the web socket service of the desktop application, and establishes full duplex communication between the web application and the desktop application. If the network socket connection is successful, the terminal realizes the intercommunication between the webpage application and the desktop application based on the network socket connection. If the network socket connection is unsuccessful, the terminal restarts the desktop application through the operating system.
In one embodiment, as shown in the flowchart of the application communication step in fig. 4, the private protocol registration for starting the application B is completed in advance by the operating system on the terminal, and the private protocol link is obtained. And responding to the triggering operation performed on the application A for the private protocol link of the application B, and submitting the private protocol link to an operating system for analysis. And the operating system finds the application B according to the analyzed address of the application B at the local terminal, and starts the application B according to the analyzed private protocol. After starting application B, application B restarts its own web socket service (Websocket service). And the terminal connects the Websocket service of the application A with the Websocket service of the application B, and establishes full duplex communication between the application A and the application B.
It should be understood that, although the steps in the flowcharts of fig. 1, 3, and 4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps in fig. 1, 3, and 4 may include a plurality of steps or stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the execution of the steps or stages is not necessarily sequential, but may be performed in turn or alternately with at least a portion of the steps or stages in other steps or others.
In one embodiment, as shown in fig. 5, there is provided an application communication apparatus including: the receiving module 502, the starting module 504, the connecting module 506 and the communication module 508, wherein:
a receiving module 502, configured to receive, based on the integrator application, a triggering operation of the private protocol link of the integrated application.
A starting module 504, configured to start the integrated party application in response to the triggering operation.
A connection module 506, configured to establish a web socket connection between the integrator application and the integrated application based on the web socket service.
And the communication module 508 is used for realizing the intercommunication between the integrating party application and the integrated party application based on the network socket connection.
In one embodiment, the initiation module 504 is further configured to submit the private protocol link to the operating system in response to a triggering operation; analyzing the private protocol link through an operating system to obtain an analysis result; and starting the integrated party application according to the private protocol in the analysis result and the address of the integrated party application local to the terminal.
In one embodiment, the connection module 506 is further configured to initiate a web socket service through the integrated party application after the integrated party application is initiated; and establishing the network socket connection between the integrating application and the integrated application based on the network socket services respectively started by the integrating application and the integrated application.
In one embodiment, as shown in fig. 6, the apparatus further comprises,
a registration module 501, configured to respond to a writing request for a private protocol registry of an integrated party application, and expose an interface for writing the private protocol registry; a private protocol link for launching the integrated party application is generated based on the private protocol entered in the interface and the address of the integrated party application local to the terminal.
In one embodiment, the integrating party application is a web application, and the integrating party application is a desktop application; the receiving module 502 is further configured to display a web page corresponding to the application of the integrating party; the webpage comprises private protocol links corresponding to the desktop application; a trigger operation for a private protocol link is received.
In one embodiment, the web application is an enterprise management web application; the desktop application is an instant messaging client; a starting module 504, configured to start the instant messaging client in response to the triggering operation; the connection module 506 is further configured to establish a web socket connection between the enterprise management web application and the instant messaging client based on the web socket service.
The specific limitations regarding the application communication device may be referred to above as limitations regarding the application communication method, and will not be described herein. The various modules in the application communication device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an application communication method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
receiving a triggering operation of a private protocol link of an integrated party application based on the integrated party application;
in response to the triggering operation, starting an integrated party application;
establishing a network socket connection between an integrating party application and an integrated party application based on a network socket service;
based on the network socket connection, the mutual communication between the integrating side application and the integrated side application is realized.
In one embodiment, the processor when executing the computer program further performs the steps of: responding to triggering operation, and submitting the private protocol link to an operating system; analyzing the private protocol link through an operating system to obtain an analysis result; and starting the integrated party application according to the private protocol in the analysis result and the address of the integrated party application local to the terminal.
In one embodiment, the processor when executing the computer program further performs the steps of: after the integrated party application is started, starting a network socket service through the integrated party application; and establishing the network socket connection between the integrating application and the integrated application based on the network socket services respectively started by the integrating application and the integrated application.
In one embodiment, the processor when executing the computer program further performs the steps of: responsive to a write request for a private protocol registry of an integrated party application, presenting an interface for writing the private protocol registry; a private protocol link for launching the integrated party application is generated based on the private protocol entered in the interface and the address of the integrated party application local to the terminal.
In one embodiment, the processor when executing the computer program further performs the steps of: the integrating party application is a webpage application, and the integrated party application is a desktop application; displaying a webpage corresponding to the application of the integrating party; the webpage comprises private protocol links corresponding to the desktop application; a trigger operation for a private protocol link is received.
In one embodiment, the processor when executing the computer program further performs the steps of: the web application is an enterprise management web application; the desktop application is an instant messaging client; responding to the triggering operation, and starting the instant communication client; based on the web socket service, a web socket connection between the enterprise management web application and the instant messaging client is established.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a triggering operation of a private protocol link of an integrated party application based on the integrated party application;
in response to the triggering operation, starting an integrated party application;
establishing a network socket connection between an integrating party application and an integrated party application based on a network socket service;
based on the network socket connection, the mutual communication between the integrating side application and the integrated side application is realized.
In one embodiment, the computer program when executed by the processor further performs the steps of: responding to triggering operation, and submitting the private protocol link to an operating system; analyzing the private protocol link through an operating system to obtain an analysis result; and starting the integrated party application according to the private protocol in the analysis result and the address of the integrated party application local to the terminal.
In one embodiment, the computer program when executed by the processor further performs the steps of: after the integrated party application is started, starting a network socket service through the integrated party application; and establishing the network socket connection between the integrating application and the integrated application based on the network socket services respectively started by the integrating application and the integrated application.
In one embodiment, the computer program when executed by the processor further performs the steps of: responsive to a write request for a private protocol registry of an integrated party application, presenting an interface for writing the private protocol registry; a private protocol link for launching the integrated party application is generated based on the private protocol entered in the interface and the address of the integrated party application local to the terminal.
In one embodiment, the computer program when executed by the processor further performs the steps of: the integrating party application is a webpage application, and the integrated party application is a desktop application; displaying a webpage corresponding to the application of the integrating party; the webpage comprises private protocol links corresponding to the desktop application; a trigger operation for a private protocol link is received.
In one embodiment, the computer program when executed by the processor further performs the steps of: the web application is an enterprise management web application; the desktop application is an instant messaging client; responding to the triggering operation, and starting the instant communication client; based on the web socket service, a web socket connection between the enterprise management web application and the instant messaging client is established.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (12)

1. An application communication method, the method comprising:
receiving a triggering operation of a private protocol link of an integrated party application based on the integrated party application; the integrating party application is an application integrating the integrated party application and is used for calling the integrated party application; the private protocol link is stored on the integrating party application and is a link address containing the private protocol and the address of the integrated party application at the local terminal; the private protocol is a communication protocol customized for the integrated party application;
responding to the triggering operation, submitting the private protocol link to an operating system;
analyzing the private protocol link through the operating system to obtain an analysis result;
searching the integrated party application at the terminal according to the address of the integrated party application in the analysis result at the terminal, and starting the searched integrated party application according to the private protocol in the analysis result;
establishing a network socket connection between the integrating party application and the integrated party application based on a network socket service;
based on the network socket connection, the integrated party application and the integrated party application mutually transmit communication instructions so as to instruct the opposite party to complete specified functions and actions according to the communication instructions.
2. The method of claim 1, wherein the establishing a web socket connection between the integrator application and the integrand application based on the web socket service comprises:
after the integrated party application is started, starting a network socket service through the integrated party application;
and establishing the network socket connection between the integrating application and the integrated application based on the network socket services respectively started by the integrating application and the integrated application.
3. The method according to claim 1, wherein the method further comprises:
responsive to a write request for a private protocol registry of the integrated party application, presenting an interface for writing the private protocol registry;
the private protocol link for starting the integrated party application is generated based on the private protocol input in the interface and the address of the integrated party application local to the terminal.
4. A method according to any one of claims 1 to 3, wherein the integrator application is a web application and the integrated application is a desktop application;
the receiving, based on the integrating party application, a trigger operation of a private protocol link to the integrating party application includes:
displaying a webpage corresponding to the application of the integrating party; the webpage comprises a private protocol link corresponding to the desktop application;
and receiving a triggering operation of the private protocol link.
5. The method of claim 4, wherein the web application is an enterprise management web application; the desktop application is an instant messaging client; the responding to the triggering operation, starting the integrated party application, comprising:
responding to the triggering operation, and starting the instant communication client;
the establishing a network socket connection between the integrating party application and the integrating party application based on the network socket service comprises the following steps:
based on the web socket service, establishing the web socket connection between the enterprise management web application and the instant messaging client.
6. An application communication device, the device comprising:
the receiving module is used for receiving a triggering operation of the private protocol link of the integrated party application based on the integrated party application; the integrating party application is an application integrating the integrated party application and is used for calling the integrated party application; the private protocol link is stored on the integrating party application and is a link address containing the private protocol and the address of the integrated party application at the local terminal; the private protocol is a communication protocol customized for the integrated party application;
the starting module is used for responding to the triggering operation and submitting the private protocol link to an operating system; analyzing the private protocol link through the operating system to obtain an analysis result; searching the integrated party application at the terminal according to the address of the integrated party application in the analysis result at the terminal, and starting the searched integrated party application according to the private protocol in the analysis result;
the connection module is used for establishing network socket connection between the integrating party application and the integrated party application based on the network socket service;
and the communication module is used for connecting based on the network socket, and the application of the integrating party and the application of the integrated party mutually transmit communication instructions so as to instruct the opposite party to finish appointed functions and actions according to the communication instructions.
7. The apparatus of claim 6, wherein the connection module is further configured to initiate a web socket service through the integrated party application after the integrated party application is initiated; and establishing the network socket connection between the integrating application and the integrated application based on the network socket services respectively started by the integrating application and the integrated application.
8. The apparatus of claim 6, further comprising a registration module for exposing an interface for authoring a private protocol registry for the integrated party application in response to an authoring request for the private protocol registry; the private protocol link for starting the integrated party application is generated based on the private protocol input in the interface and the address of the integrated party application local to the terminal.
9. The apparatus according to any one of claims 6 to 8, wherein the integrator application is a web application and the integrated application is a desktop application; the receiving module is also used for displaying a webpage corresponding to the application of the integrating party; the webpage comprises a private protocol link corresponding to the desktop application; and receiving a triggering operation of the private protocol link.
10. The apparatus of claim 9, wherein the web application is an enterprise management web application; the desktop application is an instant messaging client; the starting module is also used for responding to the triggering operation and starting the instant communication client; the connection module is also used for establishing the network socket connection between the enterprise management webpage application and the instant communication client based on the network socket service.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when the computer program is executed.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
CN202011509299.5A 2020-12-18 2020-12-18 Application communication method, device, computer equipment and storage medium Active CN112559213B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011509299.5A CN112559213B (en) 2020-12-18 2020-12-18 Application communication method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011509299.5A CN112559213B (en) 2020-12-18 2020-12-18 Application communication method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112559213A CN112559213A (en) 2021-03-26
CN112559213B true CN112559213B (en) 2023-07-21

Family

ID=75031902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011509299.5A Active CN112559213B (en) 2020-12-18 2020-12-18 Application communication method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112559213B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502549A (en) * 2016-09-22 2017-03-15 深圳云之家网络有限公司 The method and system of light application is opened in application program
CN111193716A (en) * 2019-12-11 2020-05-22 未鲲(上海)科技服务有限公司 Service data calling method and device, computer equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8544025B2 (en) * 2010-07-28 2013-09-24 International Business Machines Corporation Efficient data transfer on local network connections using a pseudo socket layer
US20120077546A1 (en) * 2010-09-24 2012-03-29 Nokia Corporation Method and apparatus for customizing application protocols
CN107370775B (en) * 2016-05-11 2020-04-28 阿里巴巴集团控股有限公司 Method and system for starting application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502549A (en) * 2016-09-22 2017-03-15 深圳云之家网络有限公司 The method and system of light application is opened in application program
CN111193716A (en) * 2019-12-11 2020-05-22 未鲲(上海)科技服务有限公司 Service data calling method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112559213A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN107203419B (en) Method, device and system for calling among modules in application program
US8499153B2 (en) System and method of authenticating a user to a service provider
CN113296798B (en) Service deployment method, device and readable storage medium
CN109240697B (en) Call processing method and device and storage medium
KR20140027507A (en) Web application architecture
CN112867988A (en) Implementing compliance settings by a mobile device to follow a configuration scenario
US10606477B1 (en) Intelligent keyboard
CN110069308B (en) Page starting method and device, electronic equipment and storage medium
CN110750222A (en) Printing method, printing device, computer equipment and storage medium
CN111949314A (en) Method and device for generating application installation package, server and storage medium
CN105024913A (en) Method, apparatus and system of instant messaging conversation
US11243755B1 (en) Resource aware patching service
CN113709243B (en) Equipment remote control method and device, electronic equipment and storage medium
US7086051B2 (en) Method and apparatus for just-in-time provisioning application-related information at a communication device
CN110673970B (en) Cross-process calling system and method based on web application
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
CN112491940B (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
CN112559213B (en) Application communication method, device, computer equipment and storage medium
CN114610446B (en) Method, device and system for automatically injecting probe
US20190007520A1 (en) Electronic device and operation method thereof and server host device
CN115080109A (en) Multi-cloud-end environment joint debugging method, device, system and equipment based on hybrid development
CN112543194B (en) Mobile terminal login method and device, computer equipment and storage medium
CN111614676B (en) Login method, device, equipment and medium
US10917766B1 (en) System and methods for bring your own device eligibility platform
US20200364737A1 (en) Platform for voice applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant