CN114095464A - Instant message implementation method and system - Google Patents

Instant message implementation method and system Download PDF

Info

Publication number
CN114095464A
CN114095464A CN202111352883.9A CN202111352883A CN114095464A CN 114095464 A CN114095464 A CN 114095464A CN 202111352883 A CN202111352883 A CN 202111352883A CN 114095464 A CN114095464 A CN 114095464A
Authority
CN
China
Prior art keywords
instant message
message
client
processing server
external system
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.)
Granted
Application number
CN202111352883.9A
Other languages
Chinese (zh)
Other versions
CN114095464B (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.)
Chengdu Knownsec Information Technology Co ltd
Original Assignee
Chengdu Knownsec Information Technology 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 Chengdu Knownsec Information Technology Co ltd filed Critical Chengdu Knownsec Information Technology Co ltd
Priority to CN202111352883.9A priority Critical patent/CN114095464B/en
Publication of CN114095464A publication Critical patent/CN114095464A/en
Application granted granted Critical
Publication of CN114095464B publication Critical patent/CN114095464B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • 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/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides an instant message implementation method and system, the system comprises a message processing server, an external system and a plurality of clients, the external system is communicated with the message processing server, the plurality of clients are provided with a cloud integrated development environment, instant message plug-ins are integrated in the cloud integrated development environment, when configuration events in a pre-configured network hook are triggered, the external system sends related data to the message processing server, the message processing server processes the data and then sends the processed data to the client corresponding to a configuration address in the network hook, and the client receiving the data utilizes the instant message plug-ins in the cloud integrated development environment to display the data. According to the scheme, the instant message plug-in is integrated in the cloud integrated development environment, and the message processing server is used as a communication intermediary between the client and the external system, so that data can be received and sent based on the cloud integrated development environment, switching between the cloud integrated development environment and instant message software in the development process is avoided, and the development efficiency is improved.

Description

Instant message implementation method and system
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and a system for implementing an instant message.
Background
In a traditional software development team collaboration mode, a development team uses a project management system like Jira to manage user requirements and development tasks, uses a code warehouse management system like GitLab to manage software codes, and receives notification information on the Jira and the GitLab in a mail mode. Software developers need to install integrated development environments on respective computers and compile codes in the integrated development environments, check user requirements on Jira, perform state flow on development tasks, download project codes on GitLab, submit combined code requests, and check notification messages on the Jira and the GitLab from mailbox clients. It can be seen that, in the above development process, developers need to switch among different software windows, and often are disturbed to interrupt tasks, thereby reducing the efficiency of the developers.
With the development of technology, the development team now adds swarm robots in instant message software, receives the notification messages of Jira and GitLab through the robots and sends the notification messages to the chat swarm, so that the developers can receive the messages of the external system at any time. Some powerful swarm robots can not only receive messages, but also operate external systems such as Jira and GitLab by sending messages, thereby greatly reducing the time for developers to leave the integrated development environment. However, in the prior art, developers need to frequently switch between the integrated development environment and the instant messaging software, and development work is often interrupted, so that development efficiency is reduced.
Disclosure of Invention
The object of the present application includes, for example, providing an instant message implementation method and system, which can avoid frequent switching between a development environment and instant message software in a development process, and improve development efficiency of developers.
The embodiment of the application can be realized as follows:
in a first aspect, the present application provides an instant message implementation method, which is applied to an instant message implementation system, where the system includes a message processing server, an external system, and multiple clients, each of the clients communicates with the external system through the message processing server, a cloud integrated development environment is installed in each of the clients, and an instant message plug-in is integrated in the cloud integrated development environment, where the method includes:
when a configuration event in a pre-configured network hook is triggered, the external system sends related data of the configuration event to the message processing server;
the message processing server processes the received data and sends the processed data to a client corresponding to the configuration address in the network hook;
and the client receiving the data displays the data by utilizing the instant message plug-in integrated in the cloud integrated development environment.
In an optional embodiment, the method further comprises a step of pre-configuring the network hook, the step comprising:
each client generates an instant message client identifier corresponding to the client according to an instant message plug-in integrated in a cloud integrated development environment and sends the instant message client identifier to the message processing server;
the message processing server generates a corresponding network hook address according to each instant message client identifier and sends the corresponding network hook address to the external system;
and the external system obtains a configuration address according to the received network hook address and obtains the network hook based on the set configuration event and configuration address configuration.
In an alternative embodiment, the method further comprises:
and establishing websocket connection between the message processing server and each client.
In an optional embodiment, the method further comprises the step of integrating the instant message plug-in the cloud integrated development environment in advance, and the step comprises the following steps:
the external system is developed based on the development specification of the cloud integration environment to obtain an instant message plug-in;
when any client triggers a download request, the client downloads the developed instant message plug-in, decompresses the instant message plug-in, and places the decompressed plug-in file in a specific directory of the cloud integrated environment.
In an optional embodiment, the step of developing, by the external system, an instant message plug-in based on a development specification of a cloud integration environment includes:
setting a matched window style according to the theme style of the cloud integrated development environment;
obtaining a method function required by the instant message plug-in;
and developing to obtain the instant message plug-in based on the method function and the window style.
In an alternative embodiment, the method further comprises:
the client sends an operation message aiming at the external system to the message processing server through the instant message plug-in;
the message processing server calls an API (application program interface) for interfacing the external system and sends the operation message to the external system based on the API;
and the external system performs corresponding operation on the stored project information based on the received operation message.
In an optional embodiment, the step of sending, by the external system, relevant data of a configuration event in a preconfigured network hook to the message processing server when the configuration event is triggered includes:
when the corresponding operation of the external system on the project information is any one configuration event in the preconfigured network hooks, determining that the configuration event is triggered;
and sending the relevant data generated by the corresponding operation to the message processing server.
In an optional embodiment, the step of processing the received data by the message processing server includes:
the message processing server cleans the received data;
and converting the format of the cleaned data into a message format required by the cloud integrated development environment.
In a second aspect, the present application provides an instant message implementation system, where the system includes a message processing server, an external system, and multiple clients, where each client communicates with the external system through the message processing server, a cloud integrated development environment is installed in each client, and an instant message plug-in is integrated in the cloud integrated development environment:
the external system is used for sending the relevant data of the configuration event to the message processing server when the configuration event in the pre-configured network hook is triggered;
the message processing server is used for processing the received data and sending the processed data to the client corresponding to the configuration address in the network hook;
and the client receiving the data is used for displaying the data by utilizing the instant message plug-in integrated in the cloud integrated development environment.
In an optional implementation manner, each of the clients is further configured to generate an instant message client identifier corresponding to the client according to an instant message plug-in integrated in a cloud integrated development environment, and send the instant message client identifier to the message processing server;
the message processing server is also used for generating a corresponding network hook address according to each instant message client identifier and sending the corresponding network hook address to the external system;
and the external system is also used for obtaining a configuration address according to the received network hook address and obtaining the network hook based on the set configuration event and configuration address configuration.
The beneficial effects of the embodiment of the application include, for example:
the application provides an instant message implementation method and system, the system comprises a message processing server, an external system and a plurality of clients, the external system is communicated with the message processing server, the external system is communicated with the plurality of clients, a cloud integrated development environment is installed in each client, instant message plug-ins are integrated in the cloud integrated development environment, when configuration events in a pre-configured network hook are triggered, the external system sends related data of the configuration events to the message processing server, the message processing server processes the data and then sends the processed data to the client corresponding to a configuration address in the network hook, and the client receiving the data utilizes the instant message plug-ins in the cloud integrated development environment to display the data. According to the scheme, the instant message plug-in is integrated in the cloud integrated development environment, and the message processing server is used as a communication intermediary between the client and the external system, so that data can be received and sent based on the cloud integrated development environment, frequent switching between the cloud integrated development environment and instant message software in the development process is avoided, and the development efficiency of developers is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a block diagram of an instant messaging implementation system according to an embodiment of the present disclosure;
fig. 2 is a flowchart of an instant message implementation method provided in an embodiment of the present application;
fig. 3 is a flowchart of a method for integrating an instant message plug-in an instant message implementation method according to an embodiment of the present application;
FIG. 4 is a flowchart of sub-steps included in step S101 of FIG. 3;
fig. 5 is a flowchart of a method for configuring a network hook in an instant message implementation method provided in an embodiment of the present application;
fig. 6 is another flowchart of an instant message implementation method provided in an embodiment of the present application;
fig. 7 is a schematic interaction diagram between devices in the instant message implementation system according to the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it should be noted that the features in the embodiments of the present application may be combined with each other without conflict.
Please refer to fig. 1, which is a block diagram illustrating an instant message implementation system according to an embodiment of the present disclosure. The instant message implementation system comprises a message processing server, an external system and a plurality of clients. Each client communicates with an external system through a message processing server, which serves as a communication bridge between the client and the external system.
The plurality of clients may be clients used by a plurality of developers participating in the project development, respectively, and may be terminal devices such as a personal computer and a tablet computer. Multiple developers can develop projects in a coordinated manner.
The external system refers to a tool for development team cooperation, and generally has corresponding web services, including a Jira system for project management, a Gitlab system for code hosting, and the like. Jira is a project and transaction tracking tool and is widely applied to the working fields of defect tracking, customer service, demand collection, process approval, task tracking, project tracking, agile management and the like. GitLab is an open source project for a warehouse management system, and is a web service built on the basis of Git serving as a code management tool.
A web service is a platform-independent, low-coupling, self-contained, programmable web-based application that can be described, published, discovered, coordinated and configured using the open XML (a subset of the standard universal markup language) standard for developing distributed, interoperating applications.
The message processing server is a built communication intermediary for realizing the client and the external system, and can receive the message sent by the client and send the message to the external system, and also can receive the message sent by the external system and send the message to the client. And, the received message can be processed accordingly.
Each client is installed with an Integrated Development Environment (IDE), which may be specifically a cloud Integrated Development Environment. An integrated development environment is an application program for providing a program development environment, and generally includes tools such as a code editor, a compiler, a debugger, and a graphical user interface. The cloud integrated development environment is a web service running on a cloud server, developers can use the integrated development environment through a web browser, the functions of the integrated development environment are consistent with those of the local integrated development environment, and the integrated development environment can write, debug, compile, execute and the like codes.
Compared with a local integrated development environment, the cloud integrated development environment has many advantages, such as local zero resource consumption, and the requirements of development on local resources approach zero due to the support of an online server. In addition, cross-platform access can be realized, namely, the difference of the cross-operating systems is realized, developers carry out an integrated development environment through a web browser, and the code, debugging, compiling and executing capabilities are shared. Multiple languages, such as syntax highlighting, syntax checking, e.g., Java, Python, node.
In this embodiment, an instant message plug-in may also be pre-integrated in the cloud integrated development environment. Instant Messaging (IM), also known as Instant Messaging, refers to a tool that can communicate online in real time, also known as an online chat tool. Broadly speaking, instant messaging includes communication with all online networks, including web chat rooms, web conferencing systems, and the like; in a narrow sense, instant messaging refers to communication under the control of a set of IM servers.
In this embodiment, an instant message plug-in is integrated in the cloud integrated development environment of each client, so that the cloud integrated development environment has the related functions of instant message software by using the instant message plug-in, and can implement message interaction with an external system.
It will be appreciated that the system architecture shown in fig. 1 is merely one possible example, and that in other possible embodiments, the system may include only some of the components shown in fig. 1 or may include additional components.
Fig. 2 is a flowchart illustrating an instant message implementation method according to an embodiment of the present application, where the instant message implementation method may be implemented by the instant message implementation system shown in fig. 1. It should be understood that, in other embodiments, the order of some steps in the instant message implementation method of this embodiment may be interchanged according to actual needs, or some steps may be omitted or deleted. The detailed steps of the instant message implementation method are introduced as follows.
S301, when a configuration event in a pre-configured network hook is triggered, the external system sends related data of the configuration event to the message processing server.
S302, the message processing server processes the received data and sends the processed data to the client corresponding to the configuration address in the network hook.
And S303, the client receiving the data displays the data by using the instant message plug-in integrated in the cloud integrated development environment.
In the process of project development, each developer can send own development related information to an external system, and can also receive other developers in a team or some development related information released by a project manager from the external system, so that the sharing of project development information is realized, and team cooperation of project development is realized.
In this embodiment, a network hook (Webhook) is configured in advance in the external system, and the network hook is a method for adding or changing a webpage expression by a custom callback function. These callbacks may be saved, modified and managed by third party users and developers who may be associated with the original web site or application.
The pre-configured network hook contains a configuration event, that is, in the case of the same event as the configuration event, the relevant operation will be triggered. For example, the configuration event may be addition information, merging information, or the like, that is, when any developer in the team or a project manager sends information to be added or merged to the external system, it may be considered that the addition or merging configuration event is triggered, and at this time, related data of the configuration event is sent to the message processing server.
In addition, the pre-configured network hook further comprises a configuration address, and the representation sends relevant data of the configuration event to a client corresponding to the configuration address under the condition that the configuration event is triggered. Because the cloud integrated development environment is installed on the client, the instant message plug-in is integrated in the cloud integrated development environment. And the configuration address can uniquely identify the client, which is equivalent to the configuration address can uniquely identify the instant message plug-in on the client. When the message processing server sends the relevant data to the client based on the configuration address, it can be understood that the relevant data is sent to the instant message plug-in the client based on the configuration address uniquely identifying the instant message plug-in on the client.
In this embodiment, before the message processing server sends the data received from the external system to the client, the data may be processed, for example, the message processing server may clean the received data and convert the format of the cleaned data into a message format required by the cloud integrated development environment.
Because the instant message plug-in on the client is integrated in the cloud integrated development environment, the client receiving the data displays the data by using the instant message plug-in integrated in the cloud integrated development environment. For example, a window of the instant message plug-in is displayed at an edge position of the cloud integrated development environment interface, such as the lower left corner, the lower right corner, the upper left corner, the upper right corner and the like, and data is displayed in the window. Of course, the display frame of the instant message plug-in may also be displayed in other positions of the interface of the cloud integrated development environment, and this embodiment is not particularly limited.
In this way, the instant message plug-in is integrated in the cloud integrated development environment, so that the cloud integrated development environment can have the related functions of the instant message software, and the message processing server is used as an intermediary of data interaction between the cloud integrated development environment and the external system, so that communication between the cloud integrated development environment and the external system is successfully realized. By integrating the instant message plug-in the cloud integrated development environment and combining with the newly added message processing server, the development personnel at the client can be free from frequently switching between the development environment and the instant message software when the instant message software is required to be utilized in the development process, and the development efficiency of the development personnel is improved.
In this embodiment, a process of integrating an instant message plug-in a cloud integrated development environment in advance is described below with reference to fig. 3:
and S101, the external system is developed based on the development specification of the cloud integration environment to obtain the instant message plug-in.
S102, when any client triggers a download request, the client downloads the developed instant message plug-in, decompresses the instant message plug-in, and places the decompressed plug-in file in a specific directory of the cloud integration environment.
In a common integrated development environment, the functions of the integrated development environment can be extended in a plug-in mode, and similarly, in a cloud integrated development environment, the functions can also be extended through the plug-in. Plug-ins can be broadly classified into a systems class, a beautification class, and an auxiliary class. The system plug-ins may be some plug-ins for acquiring memory, CPU parameters, JCM basic information, etc., the auxiliary plug-ins may be functional plug-ins for code automatic generation, code inspection, etc., and the beautification plug-ins may be plug-ins for functions such as background picture modification, contole log color highlighting, etc.
In this embodiment, the instant message plug-in integrated in the cloud integrated development environment is an auxiliary plug-in, and extends the function of implementing the instant message to the cloud integrated development environment.
In this embodiment, different cloud integrated development environments have different development rules based on different settings and different environments, and thus, an instant message plug-in can be developed and obtained based on a development specification corresponding to the cloud integrated development environment of the current client.
In detail, referring to fig. 4, in the embodiment, the instant message plug-in may be developed in the following manner:
and S1011, setting a matched window style according to the theme style of the cloud integrated development environment.
S1012, obtaining the method function needed by the instant message plug-in.
And S1013, developing and obtaining the instant message plug-in based on the method function and the window style.
The instant message plug-in needs to be integrated in the cloud integrated development environment, and the window style of the plug-in needs to be matched with the theme style of the cloud integrated development environment, so that integration barrier caused by mismatch of the two is avoided. In addition, the instant message plug-in needs to implement a related messaging function and needs to be implemented using a related method function, and thus, the instant message plug-in is developed based on the required method function and window style.
After the instant message plug-in obtained through development is completed, the instant message plug-in can be uploaded to a plug-in market, and therefore any developer in a project team can install and integrate the plug-in by entering the plug-in market.
Any developer can trigger a download request, and under the condition of triggering the download request, the client enters a plug-in menu in the plug-in market from the cloud integrated development environment, and at the moment, a series of plug-ins which can be installed in the plug-in market are displayed in a certain area of an interface of the cloud integrated development environment, such as a right area, a left area and the like. The developer-initiated download request may also point to a particular plug-in, for example, an "install" button may be installed in the selection field of each plug-in, which when clicked, characterizes the plug-in to which the download request points as the plug-in. The client can download the plug-in and perform integrated installation.
Because the instant message plug-in the plug-in market is a compressed plug-in file, after the client downloads the instant message plug-in, corresponding decompression operation needs to be performed, and the decompressed plug-in file is placed in a plug-in directory in the integrated development environment.
The subsequent cloud integrated development environment can periodically check the plug-in files under the plug-in directory, if a new plug-in is generated, the related functions of the updated plug-in are called, the functions of the plug-in are used after the calling, and then the window of the instant message is displayed on the interface of the cloud integrated development environment.
After the integration of the instant message plug-in is performed in the cloud integrated development environment in advance in the above manner, the configuration operation of the network hook performed by the external system may be performed, referring to fig. 5, in this embodiment, the configuration of the network hook may be performed in the following manner:
s201, each client generates an instant message client identifier corresponding to the client according to the instant message plug-in integrated in the cloud integrated development environment, and sends the instant message client identifier to the message processing server.
S202, the message processing server generates corresponding network hook addresses according to the instant message client identifications and sends the corresponding network hook addresses to the external system.
S203, the external system obtains a configuration address according to the received network hook address, and obtains the network hook based on the set configuration event and configuration address configuration.
In this embodiment, after the instant message plug-ins are integrated in the integrated development environment of each client corresponding to the developer of the development team, an instant message client identifier may be generated, and the instant message client identifier may uniquely mark the client or may be understood as an instant message plug-in uniquely marking the client.
Each client may send the generated instant message client identification to the message processing server, and the message processing server generates a network hook address based on the instant message client identification, which may be understood as a URL (Uniform Resource Locator) address for characterizing a network address on the client using the integrated development environment on the cloud server through the web browser.
In this embodiment, after each client sends the instant message client identifier to the message processing server, the message processing server may establish a websocket connection with each client. The websocket is a Protocol for performing full-duplex communication on a single TCP (Transmission Control Protocol) connection, so that data exchange between the client and the server is simpler, and the server is allowed to actively push data to the client. In the WebSocket API, the browser and the server only need to complete one handshake, and persistent connection can be directly established between the browser and the server, and bidirectional data transmission is carried out.
On the basis, the message processing server sends the generated network hook address to an external system, the external system obtains a configuration address based on the network hook address, and a network hook is obtained based on the configuration address and the configuration event configuration. Wherein the configuration event may be determined based on setup information of a project manager of the development project. For example, the determination may be performed by displaying a selection frame of a plurality of items on the configuration interface, and the project manager may select from the plurality of items based on the development requirement and the development optimization consideration, for example, may perform selection confirmation in a check manner, and use the selected and confirmed item as the configuration event.
Thus, the network hook contains a configuration event that may characterize under what circumstances the trigger operation is, e.g., the sending of relevant data, and a configuration address that may indicate the particular client to which the trigger operation is directed.
On the basis of the configuration completion, in the formal use process, the developers can perform message interaction with the external system based on the instant message plug-in the cloud integration environment, including development related messages of other developers in the development team pushed by the interface external system or messages issued by the project manager in the external system, or send development related messages of the developers to the external system to be shared with other developers in the development team, so as to realize project development cooperation.
Referring to fig. 6, from the perspective of the client, when the client sends a message, the implementation process may be as follows:
s304, the client sends the operation information aiming at the external system to the information processing server through the instant information plug-in.
S305, the message processing server calls an API interface for butting the external system and sends the operation message to the external system based on the API interface.
S306, the external system carries out corresponding operation on the stored project information based on the received operation message.
In the process of executing the development process in the cloud integrated development environment, if development related messages need to be sent to an external system, the development related messages can be sent through an instant message plug-in the cloud integrated development environment. Specifically, the editing of the operation message and the sending of the operation message may be performed based on a window of an instant message plug-in the cloud integrated development environment.
The operation message includes a system ID and an operation type, where the system ID indicates a specifically-directed system, such as the above-mentioned Jira system or the above-mentioned Gitlab system. The message processing server determines the corresponding external system according to the system ID and the operation type in the message processing server.
In this embodiment, the external system may provide an API for the message processing server to call, and after receiving the operation message sent by the client, the message processing server calls an API interface interfacing with the external system, and sends the operation message to the external system based on the API interface. And after the external system receives the operation message, corresponding operation is executed, for example, corresponding operation is performed on the project information of the development project.
The operation performed based on the operation message of any client may cause a configuration event in the external system to be triggered, that is, trigger the execution of the steps S301 to S303. Therefore, in the above step S301, specifically, when the corresponding operation of the external system on the item information is any one of the pre-configured network hooks, it is determined that the configuration event is triggered, and relevant data generated by the corresponding operation is sent to the message processing server, so as to be sent to the client corresponding to the configuration address through the message processing server.
In order to make the person skilled in the art more clearly understand the instant message implementation method provided in the present embodiment, an overall flow of the implementation method will be described below with reference to fig. 7.
The instant message implementation method provided by the embodiment integrally comprises a configuration process, a message receiving process (from the perspective of the client) and a message sending process (from the perspective of the client).
The following is an introduction to the configuration process:
s401, the client generates an instant message client identifier;
in this step, the client generates an instant message client identifier based on an instant message plugin integrated in the cloud integrated development environment;
s402, the client sends the instant message client identification to the message processing server;
s403, the message processing server generates a network hook address based on the instant message client identifier;
s404, establishing a websocket connection between the message processing server and the client;
s405, the message processing server sends the network hook address to an external system;
s406, the external system configures the network hook based on the configuration event and the network hook address.
The following is an introduction to the message reception procedure:
s407, when the configuration event is triggered, the external system sends the relevant data of the configuration event to the message processing server;
s408, the message processing server processes the data;
s409, the message processing server sends the data to the corresponding client based on the network hook address;
and S410, the client displays the received data through the instant message plug-in the cloud integrated development environment.
The following is an introduction to the messaging process:
s411, the client sends the operation message to a message processing server;
s412, the message processing server determines a specific external system according to the system ID and the operation type in the operation message;
s413, the message processing server calls the determined API interface of the external system and sends an operation message to the external system through the API interface;
and S414, the external system executes corresponding operation based on the operation message.
In the message sending process, after the external system executes the corresponding operation based on the received message, the configuration event in the external system may be triggered, that is, the process may jump to step S407 to execute a process of sharing the information of the corresponding operation to other developers in the development team.
In addition, an embodiment of the present application further provides an instant message implementation system, please refer to fig. 1 again, in the instant message implementation system provided in this embodiment, the external system is configured to send relevant data of a configuration event to the message processing server when the configuration event in a preconfigured network hook is triggered; the message processing server is used for processing the received data and sending the processed data to the client corresponding to the configuration address in the network hook; and the client receiving the data is used for displaying the data by utilizing the instant message plug-in integrated in the cloud integrated development environment.
The instant message implementation system provided by this embodiment integrates the instant message plug-in the cloud integrated development environment, and uses the message processing server as a communication intermediary between the client and the external system, so that data can be received and transmitted based on the cloud integrated development environment, frequent switching between the cloud integrated development environment and the instant message software in the development process is avoided, and the development efficiency of developers is improved.
In a possible implementation manner, each client is further configured to generate an instant message client identifier corresponding to the client according to an instant message plug-in integrated in a cloud integrated development environment, and send the instant message client identifier to the message processing server; the message processing server is also used for generating a corresponding network hook address according to each instant message client identifier and sending the corresponding network hook address to the external system; and the external system is also used for obtaining a configuration address according to the received network hook address and obtaining the network hook based on the set configuration event and configuration address configuration.
In a possible implementation manner, the message processing server is further configured to establish a websocket connection with each client.
In a possible implementation manner, the external system is further configured to develop an instant message plug-in based on a development specification of a cloud integration environment; when any client triggers a download request, the client is used for downloading the developed instant message plug-in, decompressing the instant message plug-in, and placing the decompressed plug-in file in a specific directory of the cloud integrated environment.
In a possible implementation manner, the external system may be specifically configured to set a matched window style according to a theme style of the cloud integrated development environment; obtaining a method function required by the instant message plug-in; and developing to obtain the instant message plug-in based on the method function and the window style.
In a possible implementation manner, the client is further configured to send an operation message for the external system to the message processing server through the instant message plug-in; the message processing server is also used for calling an API (application programming interface) for butting the external system and sending the operation message to the external system based on the API; and the external system is also used for carrying out corresponding operation on the stored project information based on the received operation message.
In a possible implementation manner, the external system is configured to determine that the configuration event is triggered when a corresponding operation on the project information is any one of the pre-configured network hooks; and sending the relevant data generated by the corresponding operation to the message processing server.
In a possible implementation manner, the message processing server is configured to perform cleansing on the received data; and converting the format of the cleaned data into a message format required by the cloud integrated development environment.
The instant message implementation method can be implemented based on the instant message implementation system, and both have the same, similar, and corresponding technical features, so for the parts of the instant message implementation system that are not described in detail, reference can be made to the instant message implementation method in the above embodiments, and the description of this embodiment is omitted here.
In summary, the present application provides an instant message implementation method and system, where the system includes a message processing server, an external system communicating with the message processing server, and multiple clients, where each client is installed with a cloud integrated development environment, and an instant message plug-in is integrated in the cloud integrated development environment, when a configuration event in a pre-configured network hook is triggered, the external system sends related data of the configuration event to the message processing server, the message processing server processes the data and sends the processed data to a client corresponding to a configuration address in the network hook, and the client receiving the data uses the instant message plug-in the cloud integrated development environment to display the data. According to the scheme, the instant message plug-in is integrated in the cloud integrated development environment, and the message processing server is used as a communication intermediary between the client and the external system, so that data can be received and sent based on the cloud integrated development environment, frequent switching between the cloud integrated development environment and instant message software in the development process is avoided, and the development efficiency of developers is improved.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An instant message implementation method is applied to an instant message implementation system, the system comprises a message processing server, an external system and a plurality of clients, each client communicates with the external system through the message processing server, a cloud integrated development environment is installed in each client, an instant message plug-in is integrated in the cloud integrated development environment, and the method comprises the following steps:
when a configuration event in a pre-configured network hook is triggered, the external system sends related data of the configuration event to the message processing server;
the message processing server processes the received data and sends the processed data to a client corresponding to the configuration address in the network hook;
and the client receiving the data displays the data by utilizing the instant message plug-in integrated in the cloud integrated development environment.
2. The method of claim 1, further comprising the step of pre-configuring the network hook, the step comprising:
each client generates an instant message client identifier corresponding to the client according to an instant message plug-in integrated in a cloud integrated development environment and sends the instant message client identifier to the message processing server;
the message processing server generates a corresponding network hook address according to each instant message client identifier and sends the corresponding network hook address to the external system;
and the external system obtains a configuration address according to the received network hook address and obtains the network hook based on the set configuration event and configuration address configuration.
3. The instant messaging method of claim 2, wherein the method further comprises:
and establishing websocket connection between the message processing server and each client.
4. The instant message implementation method of claim 1, further comprising the step of integrating an instant message plug-in a cloud integrated development environment in advance, the step comprising:
the external system is developed based on the development specification of the cloud integration environment to obtain an instant message plug-in;
when any client triggers a download request, the client downloads the developed instant message plug-in, decompresses the instant message plug-in, and places the decompressed plug-in file in a specific directory of the cloud integrated environment.
5. The method of claim 4, wherein the step of developing the instant message plug-in by the external system based on the development specification of the cloud integration environment comprises:
setting a matched window style according to the theme style of the cloud integrated development environment;
obtaining a method function required by the instant message plug-in;
and developing to obtain the instant message plug-in based on the method function and the window style.
6. The instant messaging method of claim 1, wherein the method further comprises:
the client sends an operation message aiming at the external system to the message processing server through the instant message plug-in;
the message processing server calls an API (application program interface) for interfacing the external system and sends the operation message to the external system based on the API;
and the external system performs corresponding operation on the stored project information based on the received operation message.
7. The method of claim 6, wherein the step of sending the relevant data of the configuration event to the message processing server by the external system when the configuration event in the pre-configured network hook is triggered comprises:
when the corresponding operation of the external system on the project information is any one configuration event in the preconfigured network hooks, determining that the configuration event is triggered;
and sending the relevant data generated by the corresponding operation to the message processing server.
8. The method as claimed in claim 1, wherein the step of processing the received data by the message processing server comprises:
the message processing server cleans the received data;
and converting the format of the cleaned data into a message format required by the cloud integrated development environment.
9. An instant message implementation system, characterized in that, the system includes a message processing server, an external system and a plurality of clients, each of the clients communicates with the external system through the message processing server, a cloud integrated development environment is installed in each of the clients, and an instant message plug-in is integrated in the cloud integrated development environment:
the external system is used for sending the relevant data of the configuration event to the message processing server when the configuration event in the pre-configured network hook is triggered;
the message processing server is used for processing the received data and sending the processed data to the client corresponding to the configuration address in the network hook;
and the client receiving the data is used for displaying the data by utilizing the instant message plug-in integrated in the cloud integrated development environment.
10. The system of claim 9, wherein each client is further configured to generate an instant message client identifier corresponding to the client according to an instant message plugin integrated in a cloud integrated development environment, and send the instant message client identifier to the message processing server;
the message processing server is also used for generating a corresponding network hook address according to each instant message client identifier and sending the corresponding network hook address to the external system;
and the external system is also used for obtaining a configuration address according to the received network hook address and obtaining the network hook based on the set configuration event and configuration address configuration.
CN202111352883.9A 2021-11-16 2021-11-16 Instant message realization method and system Active CN114095464B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111352883.9A CN114095464B (en) 2021-11-16 2021-11-16 Instant message realization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111352883.9A CN114095464B (en) 2021-11-16 2021-11-16 Instant message realization method and system

Publications (2)

Publication Number Publication Date
CN114095464A true CN114095464A (en) 2022-02-25
CN114095464B CN114095464B (en) 2023-08-08

Family

ID=80300988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111352883.9A Active CN114095464B (en) 2021-11-16 2021-11-16 Instant message realization method and system

Country Status (1)

Country Link
CN (1) CN114095464B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103563294A (en) * 2011-06-30 2014-02-05 国际商业机器公司 Authentication and authorization methods for cloud computing platform security
WO2016086767A1 (en) * 2014-12-05 2016-06-09 北京奇虎科技有限公司 Method, browser client, and device for achieving browser security
CN107592324A (en) * 2016-07-06 2018-01-16 广州市动景计算机科技有限公司 Information push method and device and portable terminal
CN108052377A (en) * 2017-12-29 2018-05-18 腾讯科技(深圳)有限公司 Input processing method based on cloud, device, server and storage medium
CN108628739A (en) * 2018-03-19 2018-10-09 北京奇艺世纪科技有限公司 A kind of method that Lua scripts are debugged, client, server and debugger
CN112764729A (en) * 2021-01-08 2021-05-07 深圳依时货拉拉科技有限公司 Application software development method and device, computer equipment and readable storage medium
CN112882849A (en) * 2021-03-09 2021-06-01 北京字节跳动网络技术有限公司 Information recommendation method, device, system, equipment and storage medium in cloud application
CN113206781A (en) * 2021-04-14 2021-08-03 北京达佳互联信息技术有限公司 Client control method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103563294A (en) * 2011-06-30 2014-02-05 国际商业机器公司 Authentication and authorization methods for cloud computing platform security
WO2016086767A1 (en) * 2014-12-05 2016-06-09 北京奇虎科技有限公司 Method, browser client, and device for achieving browser security
CN107592324A (en) * 2016-07-06 2018-01-16 广州市动景计算机科技有限公司 Information push method and device and portable terminal
CN108052377A (en) * 2017-12-29 2018-05-18 腾讯科技(深圳)有限公司 Input processing method based on cloud, device, server and storage medium
CN108628739A (en) * 2018-03-19 2018-10-09 北京奇艺世纪科技有限公司 A kind of method that Lua scripts are debugged, client, server and debugger
CN112764729A (en) * 2021-01-08 2021-05-07 深圳依时货拉拉科技有限公司 Application software development method and device, computer equipment and readable storage medium
CN112882849A (en) * 2021-03-09 2021-06-01 北京字节跳动网络技术有限公司 Information recommendation method, device, system, equipment and storage medium in cloud application
CN113206781A (en) * 2021-04-14 2021-08-03 北京达佳互联信息技术有限公司 Client control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114095464B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
CN110198247B (en) Interface test method and system
CN111090423B (en) Webhook framework system and method for realizing active calling and event triggering
CN102404384A (en) Unified reconnection to multiple remote servers
CN104536890A (en) Testing system, method and device
CN110569473A (en) Method for remotely operating linux server based on SSH protocol
CN113626002A (en) Service execution method and device
US20160320927A1 (en) Method and system for communication between web browsers, using a unified communication environment
CN115065652B (en) Message reply method and device, storage medium and computer equipment
CN101576978A (en) Formulating method, implementing method and implementing system of distribution type workflow
CN113626036A (en) Code integrated management method and system based on Jenkins
KR100950212B1 (en) Software development system for testing mobile communications applications, method of arranging data transfer between software components in such system, data processing device comprising such system, and computer-readable storage medium embodying computer program for controlling such device
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN114579194A (en) Spring remote call-based exception handling method and system
CN114095464B (en) Instant message realization method and system
JP2021033316A (en) Scenario providing system, scenario providing apparatus, scenario information providing method, and program
US12093705B2 (en) System and method for simple object access protocol (SOAP) interface creation
CN116094919A (en) Communication network operation method, device and system and electronic equipment
CN115242422A (en) Data intercommunication processing method and device and information management system
CN114281563A (en) Application program reconstruction method and device
KR100494827B1 (en) Distributed object model based radio server with hardware-independent communication interface and communication control method using the same
Pop et al. A Service Oriented Architecture Approach for an E-Business Platform
CN114185845A (en) File management method and device, computer equipment and storage medium
CN113468041A (en) Interface comparison test method and device
CN107209782B (en) Method for interactive operation, and transmitting machine, receiving machine and interactive operation system using the method
KR20030055908A (en) Method for Real-Time Synchronization of Data/Event between CADApplications Program

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