CN108989181B - Method, device, equipment and server for establishing instant messaging - Google Patents

Method, device, equipment and server for establishing instant messaging Download PDF

Info

Publication number
CN108989181B
CN108989181B CN201810555928.4A CN201810555928A CN108989181B CN 108989181 B CN108989181 B CN 108989181B CN 201810555928 A CN201810555928 A CN 201810555928A CN 108989181 B CN108989181 B CN 108989181B
Authority
CN
China
Prior art keywords
subscription
terminal device
user
subscription information
session
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
CN201810555928.4A
Other languages
Chinese (zh)
Other versions
CN108989181A (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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 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 Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201810555928.4A priority Critical patent/CN108989181B/en
Publication of CN108989181A publication Critical patent/CN108989181A/en
Application granted granted Critical
Publication of CN108989181B publication Critical patent/CN108989181B/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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • 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

Abstract

The invention provides a method, a device, equipment and a server for establishing instant messaging, wherein the method for establishing instant messaging comprises the steps of acquiring an input subscription adding instruction; sending subscription information corresponding to the subscription adding instruction to the server according to the subscription adding instruction; receiving associated user information of subscription information sent by a server, wherein the associated user information of the subscription information comprises information of other users with the same subscription conditions as the subscription information; acquiring an input conversation instruction aiming at a second user in other users; sending a session request to a server according to the session instruction; receiving a session response sent by a server; and creating session communication with the second terminal equipment according to the session response. The invention can quickly establish the session between users in the test process and improve the test efficiency.

Description

Method, device, equipment and server for establishing instant messaging
Technical Field
The present invention relates to network technologies, and in particular, to a method, an apparatus, a device, and a server for establishing instant messaging.
Background
Instant Messaging (IM) is a commonly used function of application programs, and can implement Instant chat among users.
In the process of testing the instant communication function of the application program, one user can create a post, the created post can be displayed on a client interface of the application program after being checked, the other user can screen the post on the interface, and after the created post is screened, a session between the two users can be established based on the created post, so that the instant communication function can be tested.
Therefore, in the testing process, the process of establishing the session between the users is complex, and the testing efficiency is low.
Disclosure of Invention
The invention provides a method, a device, equipment and a server for establishing instant messaging, which are used for realizing the rapid establishment of a session between users in a test process and improving the test efficiency.
In a first aspect, the present invention provides a method for establishing instant messaging, including:
acquiring an input subscription adding instruction;
according to the subscription adding instruction, sending subscription information corresponding to the subscription adding instruction to a server;
receiving associated user information of the subscription information sent by the server, wherein the associated user information of the subscription information comprises: other users with the same subscription conditions with the subscription information;
acquiring an input conversation instruction aiming at a second user in the other users;
sending a session request to the server according to the session instruction;
receiving a session response sent by the server;
according to the session response, establishing session communication with the second terminal equipment; the second terminal device is the terminal device of the second user.
In a second aspect, the present invention provides a method for establishing instant messaging, including:
receiving subscription information corresponding to a subscription adding instruction sent by first terminal equipment; the first terminal equipment is terminal equipment of a first user;
determining associated user information of the subscription information; the associated user information of the subscription information includes: other users except the first user with the same subscription condition with the subscription information;
sending the associated user information of the subscription information to the first terminal equipment;
receiving a session request sent by the first terminal equipment; the session request is sent by the first terminal device after acquiring a session instruction for a second user in the other users;
and sending a session response to the first terminal device, wherein the session response is used for enabling the first terminal device to establish session communication with a second terminal device, and the second terminal device is the terminal device of the second user.
In a third aspect, the present invention further provides an apparatus for establishing instant messaging, including:
the acquisition module is used for acquiring an input subscription adding instruction;
the sending module is used for sending subscription information corresponding to the subscription adding instruction to a server according to the subscription adding instruction;
a receiving module, configured to receive associated user information of the subscription information sent by the server, where the associated user information of the subscription information includes: other users with the same subscription conditions with the subscription information;
the obtaining module is further configured to obtain an input session instruction for a second user of the other users;
the sending module is further configured to send a session request to the server according to the session instruction;
the receiving module is further configured to receive a session response sent by the server;
the device further comprises:
the establishing module is used for establishing session communication with the second terminal equipment according to the session response; the second terminal device is the terminal device of the second user.
In a fourth aspect, the present invention further provides an apparatus for establishing instant messaging, including:
the receiving module is used for receiving subscription information corresponding to the subscription adding instruction sent by the first terminal equipment; the first terminal equipment is terminal equipment of a first user;
the determining module is used for determining the associated user information of the subscription information; the associated user information of the subscription information includes: other users except the first user with the same subscription condition with the subscription information;
a sending module, configured to send the associated user information of the subscription information to the first terminal device;
the receiving module is further configured to receive a session request sent by the first terminal device; the session request is sent by the first terminal device after acquiring a session instruction for a second user in the other users;
the sending module is further configured to send a session response to the first terminal device, where the session response is used to enable the first terminal device to establish session communication with a second terminal device, and the second terminal device is a terminal device of the second user.
In a fifth aspect, the present invention further provides a terminal device, including: a memory and a processor; the memory is connected with the processor;
the memory to store program instructions;
the processor is configured to invoke the program instruction stored in the memory, and execute the method for establishing instant messaging provided by the first aspect.
In a sixth aspect, the present invention further provides a server, including: a memory and a processor; the memory is connected with the processor;
the memory to store program instructions;
the processor is configured to call the program instruction stored in the memory, and execute the method for establishing instant messaging provided by the second aspect.
In a seventh aspect, the present invention also provides a computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for establishing instant messaging provided by the first aspect.
In an eighth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method for establishing instant messaging provided in the second aspect.
The method, the device, the equipment and the server for establishing instant messaging can send subscription information corresponding to a subscription adding instruction to the server according to the subscription adding instruction by acquiring the input subscription adding instruction, and receive associated user information of the subscription information sent by the server, wherein the associated user information of the subscription information comprises the following steps: other users with the same subscription condition with the subscription information; the method comprises the steps of obtaining an input session instruction aiming at a second user in other users, sending a session request to the server according to the session instruction, receiving a session response sent by the server, and then establishing session communication with a second terminal device according to the session response; the second terminal device is a terminal device of the second user. The method can determine the target user of the session from other users with the same subscription conditions with the subscription information based on the subscription information added by the user, thereby realizing the rapid establishment of the session communication between the users in the session test process and effectively improving the test efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first flowchart of a method for establishing instant messaging according to the present invention;
fig. 2 is a flowchart ii of a method for establishing instant messaging according to the present invention;
fig. 3 is a first schematic structural diagram of an apparatus for establishing instant messaging according to the present invention;
fig. 4 is a schematic structural diagram of a device for establishing instant messaging according to the present invention;
fig. 5 is a schematic structural diagram of a terminal device provided in the present invention;
fig. 6 is a schematic structural diagram of a server provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
It should be noted that the terms "first", "second", third "and the like in the various parts of the embodiments and drawings are used for distinguishing similar objects and not necessarily for describing a particular order or sequence. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method flow diagrams of the embodiments of the invention described below are merely exemplary and do not necessarily include all of the contents and steps, nor do they necessarily have to be performed in the order described. For example, some steps may be broken down and some steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
The functional blocks in the block diagrams referred to in the embodiments of the present invention described below are only functional entities and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processors and/or microcontrollers.
The method, the device, the equipment, the server and the like for establishing the instant messaging, which are provided by the following embodiments of the invention, can be applied to the test process of the application program, effectively improve the rapid establishment of the session between the users in the test process and improve the test efficiency.
The first terminal device according to the present invention described below may be the same as or different from the second terminal device. The "first" and "second" are merely to distinguish the initiator and the recipient of the session communication. In the invention, the first terminal device can be used as an initiator of session communication, and the second terminal device is used as a receiver of session communication. In other examples, the operations of the first terminal device and the second terminal device may be interchanged, i.e., the second terminal device may also serve as an initiator of the session communication, and the first terminal device may serve as a recipient of the session communication.
As illustrated below by a number of examples.
Fig. 1 is a first flowchart of a method for establishing instant messaging according to the present invention. The fig. 1 may be implemented by a terminal device and a server interactively.
As shown in fig. 1, the method may include the steps of:
s101, the first terminal equipment obtains an input subscription adding instruction.
The first terminal device may be a terminal device of a first user. The first subscription adding instruction may be a subscription adding instruction input by a user through an input device of the first terminal device, such as a touch screen, a keyboard, and the like. Of course, the subscription adding instruction may also be a subscription adding instruction input through other devices, which is not described herein again.
For example, the subscription adding instruction may be a subscription adding instruction input by an operation such as a click operation or a touch operation input by clicking a "subscribe" or "add subscribe" button on the interface of the first terminal device for the subscription information.
The first user is a user A, after the user A logs in the application program, a personal information page is displayed on an interface of the first terminal device by clicking a 'personal' button, a subscription information page is displayed on the interface of the first terminal device by clicking a 'my subscription' button input on the page, subscription list information is displayed on the subscription information page by clicking an 'add subscription' button, and subscription of the user A to the subscription information corresponding to the subscription adding instruction is realized by clicking a 'subscription' button corresponding to the subscription information in the subscription list information.
For example, the subscription information corresponding to the subscription adding instruction may be, for example, a category of post information, or may be one piece of post information. Of course, the subscription information corresponding to the subscription adding instruction may also be other forms of information, and is not limited to the post information, and the above is only an example.
And S102, the first terminal device sends subscription information corresponding to the subscription adding instruction to the server according to the subscription adding instruction.
The first terminal device may further send, to the server, subscription information corresponding to the subscription adding instruction when the subscription adding instruction is obtained, so that the server updates the subscription information of the first user, for example, adds the subscription information corresponding to the subscription adding instruction in the subscription information of the first user.
In order to enable the server to identify the subscription information of the first user, the first terminal device may further send information of the first user, such as identification information and/or account information of the first user, to the server on the basis of sending the subscription information corresponding to the subscription adding instruction to the server.
Correspondingly, the method can further comprise the following steps:
and the server receives subscription information corresponding to the subscription adding instruction sent by the first terminal equipment.
To achieve fast creation of a session between users, the method may further include:
the second terminal equipment acquires a subscription adding instruction;
and the second terminal equipment sends subscription information corresponding to the subscription adding instruction to the server according to the subscription adding instruction.
The second terminal device may be a terminal device of a second user. The first terminal device may be the same device as the second terminal device, or may be different devices.
For example, a first terminal device may log in the first user, a second terminal device may log in the second user, and when the first user and the second user log in the same terminal device, the first terminal device and the second terminal device may be the same device; and when the first user and the second user log in on different terminal devices, the first terminal device and the second terminal device are different devices.
For the difference, the subscription adding instruction obtained by the first terminal device may be, for example, a first subscription adding instruction, and the subscription adding instruction obtained by the second terminal device may be, for example, a second subscription adding instruction.
The description of the subscription adding instruction obtained by the second terminal device may be similar to the description of the subscription adding instruction obtained by the first terminal device, which is specifically referred to above, and is not described herein again.
It should be noted that, the second terminal device may execute the subscription adding instruction simultaneously with the above S101, or may execute the subscription adding instruction sequentially, and the execution time sequence of the subscription adding instruction is not limited in the present application.
And under the condition that the second terminal device also acquires the subscription adding instruction, sending subscription information corresponding to the subscription adding instruction to the server.
The subscription information corresponding to the subscription adding instruction acquired by the second terminal device may have the same condition as the subscription information corresponding to the subscription adding instruction acquired by the first terminal device, for example, the subscription information is the same or the subscription information belongs to the same category.
In order to enable the server to identify the subscription information of the second user, the second terminal device may further send information of the second user, such as identification information and/or account information of the second user, to the server on the basis of sending the subscription information corresponding to the subscription adding instruction to the server.
It should be noted that the sending, by the second terminal device, the subscription information corresponding to the subscription adding instruction to the server may be executed simultaneously with or sequentially with the above S102, and the execution time sequence of the subscription information is not limited in the present application.
Correspondingly, the method can further comprise the following steps:
and the server receives subscription information corresponding to the subscription adding instruction sent by the second terminal equipment.
It should be noted that, the server receiving the subscription information corresponding to the subscription adding instruction sent by the second terminal device may be executed simultaneously with or sequentially with the above S103, and the execution time sequence of the subscription information is not limited in the present application.
S103, the server determines the associated user information of the subscription information; the associated user information of the subscription information includes: and other users except the first user with the same subscription condition with the subscription information.
The server can determine the associated user of the subscription information according to the subscription information, and then determine that the information of the associated user of the subscription information is the associated user information of the subscription information. Wherein, the server can determine that the user with the same subscription condition with the subscription information is determined as the associated user of the subscription information.
The associated user information of the subscription information may include at least information of other users having the same subscription condition as the subscription information. Of course, the associated user information of the subscription information may further include: information of the first user.
The same subscription conditions may include, for example: the same as the subscription information and/or the same category to which the subscription information belongs.
That is, if the first user subscribes to the subscription information, the other users subscribing to the subscription information that is the same as the subscription information or the same as the category to which the subscription information belongs may be associated users of the subscription information.
S104, the server sends the associated user information of the subscription information to the first terminal equipment.
The server can send the associated user information of the subscription information to the first terminal equipment under the condition that the first terminal equipment sends a query request; or directly sending the associated user information of the subscription information to the first terminal device.
In an example, the first terminal device may obtain an inquiry request corresponding to the subscription information and send the inquiry request to a server, and the server may send the associated user information of the subscription information to the first terminal device after receiving the inquiry request.
For example, the query request may be a query request input by a user of the first terminal device, such as a first user, also called a user, through a "personal subscription list" on an interface of the first terminal device for the subscription information. The query request input for the subscription information may be an associated user query request for the subscription information. A control button such as "Ta is also found" may be displayed on the interface, and the query request may be input by clicking the control button.
Of course, the server may also send the associated user information of the subscription information to terminal devices of other users of the subscription information, such as the second terminal device. And the server can directly send the associated user information of the subscription information to the terminal equipment of the other user, or can send the associated user information of the subscription information to the terminal equipment of the other user after receiving a query request aiming at the subscription information sent by the terminal equipment of the other user.
Correspondingly, the method can further comprise the following steps:
and the first terminal equipment receives the associated user information of the subscription information sent by the server.
And S105, the first terminal equipment acquires the input session instruction aiming at the second user in the other users.
The second user may be a user, such as a B-user, filtered from associated user information that received the subscription information.
The conversation instruction may be a conversation instruction input through an input device of the first terminal device, for example, a conversation instruction input on an interface displayed through a touch screen of the first terminal device. For example, click an icon or name corresponding to the second user among the other users. Or, the conversation instruction input by the conversation control button corresponding to the second user on the interface displayed by the touch screen of the first terminal equipment can be used.
For example, the session control button corresponding to the second user may be, for example, a "call out" button corresponding to the second user on the interface. When the "call-for-one" button corresponding to the second user on the interface receives a click operation gesture, a touch operation gesture, a long-press operation gesture, and the like, the first terminal device can acquire a session instruction for the second user.
And S106, the first terminal equipment sends a session request to the server according to the session instruction.
Correspondingly, the method can further comprise the following steps:
the server receives a session request sent by the first terminal device. The session request is sent by the first terminal device after acquiring a session instruction for a second user of the other users.
S107, the server sends a session response to the first terminal device.
After receiving the session request sent by the first terminal device, the server can directly send the session response to the first terminal device; or sending the session request to the second terminal device first and sending the session response to the first terminal device after receiving the session response returned by the second terminal device; the server may further send the session response to the first terminal device after receiving the session request sent by the first terminal device and performing a series of processing.
Correspondingly, the method can further comprise the following steps:
and the first terminal equipment receives the session response sent by the server.
And S108, the first terminal equipment establishes session communication with the second terminal equipment according to the session response.
The second terminal device may be a terminal device of a second user.
The second user may be one user or a plurality of users.
If the second user is a user, session communication between the terminal devices of the two users can be realized by executing S108, so that session test between the two users is realized; if the second user is a plurality of users, the session communication between the terminal devices of the plurality of users can be realized by executing S108, so as to realize the session test between the plurality of users.
When the first terminal device and the second terminal device establish session communication, session interfaces can be respectively displayed on the interfaces of the first terminal device and the second terminal device, and the information transmitted by the session communication, the test result of the session communication and other information can be displayed through the session interfaces.
The method for establishing instant messaging provided by the embodiment of the invention can send subscription information corresponding to the subscription adding instruction to a server according to the subscription adding instruction by acquiring the input subscription adding instruction, and receive associated user information of the subscription information sent by the server, wherein the associated user information of the subscription information comprises: other users with the same subscription condition with the subscription information; the method comprises the steps of obtaining an input session instruction aiming at a second user in other users, sending a session request to the server according to the session instruction, receiving a session response sent by the server, and then establishing session communication with a second terminal device according to the session response; the second terminal device is a terminal device of the second user. The method can determine the target user of the session test from other users with the same subscription conditions with the subscription information based on the subscription information added by the user, thereby realizing the rapid establishment of the session communication between the users in the session test process, effectively improving the test efficiency and shortening the test time.
In the method, the target user of the session test is screened from other users with the same subscription conditions in the subscription information, and the target user is not required to be screened by creating posts, so that the interference on online operation can be effectively avoided, and the quality of the online function of the application program is ensured.
Optionally, fig. 2 is a flowchart of a method for establishing instant messaging according to the present invention. The method shown in fig. 2 may be implemented by a terminal device and a server interactively. In the method corresponding to fig. 2, the terminal device may be the first terminal device or the second terminal device. As shown in fig. 2, on the basis of the method shown in fig. 1, the method for establishing instant messaging may further include:
s201, the terminal equipment receives an input subscription deletion instruction.
The subscription deletion instruction may be a user of the terminal device, such as an a user or a B user, and may be a subscription deletion instruction input in the "personal subscription list" on the interface of the terminal device for the subscription information to be deleted.
For example, after logging in the application program, the a-user may display a personal information page on the interface of the terminal device by clicking a "personal" button, display a subscription information page on the interface of the terminal device by clicking a "my subscription" button input on the page, display subscription edit information on the subscription information page by clicking a "subscription edit" button or an "edit" button, and click a subscription delete instruction input by clicking a "delete" button corresponding to the subscription information to be deleted in the subscription edit information.
And S202, the terminal equipment sends subscription information corresponding to the subscription deleting instruction to the server according to the subscription deleting instruction.
And the subscription information corresponding to the subscription deleting instruction is the subscription information to be deleted.
Correspondingly, the method can further comprise the following steps:
and the server receives subscription information corresponding to the subscription deletion instruction sent by the terminal equipment.
And S203, the server updates the subscription information of the user according to the subscription information corresponding to the subscription deleting instruction.
If the terminal device is a first terminal device, the subscription information of the first user may be updated in S303; if the terminal device is a second terminal device, the subscription information of the second user may be updated in S303.
In order to enable the server to accurately identify the subscription information of the user, the terminal device may further send user information, such as identification information and/or account information of the user, to the server.
The updating of the subscription information of the user by the server may include: and deleting the subscription information corresponding to the subscription deletion instruction from the subscription information of the user.
That is to say, in the method, the server and the terminal device may add the subscription information or delete the subscription information, thereby realizing flexibility of the association relationship between the subscription information and the user.
The following is an embodiment of the apparatus of the present invention, which can be used to implement the above-mentioned embodiment of the method of the present invention, and the implementation principle and technical effects are similar.
Fig. 3 is a first schematic structural diagram of an apparatus for establishing instant messaging according to the present invention. The device for establishing instant messaging shown in fig. 3 may be referred to as a terminal device in a software and/or hardware manner for short. As shown in fig. 3, the apparatus 30 for establishing instant messaging according to the present embodiment may include: an acquisition module 31, a sending module 32, a receiving module 33, and a creation module 34.
And an obtaining module 31, configured to obtain the input subscription adding instruction.
And a sending module 32, configured to send, according to the subscription adding instruction, subscription information corresponding to the subscription adding instruction to the server.
A receiving module 33, configured to receive the associated user information of the subscription information sent by the server, where the associated user information of the subscription information includes: other users having the same subscription condition as the subscription information.
The obtaining module 31 is further configured to obtain an input session instruction for a second user of the other users.
The sending module 32 is further configured to send a session request to the server according to the session instruction.
The receiving module 33 is further configured to receive the session response sent by the server.
A creating module 34, configured to create a session communication with the second terminal device according to the session response; the second terminal device is a terminal device of the second user.
Optionally, the same subscription conditions include: the same as the subscription information and/or the same category to which the subscription information belongs.
Optionally, the obtaining module 31 is further configured to obtain an input subscription deletion instruction.
The sending module 32 is further configured to send, according to the subscription deletion instruction, the subscription information corresponding to the subscription deletion instruction to the server, so that the server updates the subscription information of the first user according to the subscription information corresponding to the subscription deletion instruction.
The apparatus for establishing instant messaging according to this embodiment may execute the method for establishing instant messaging executed by the terminal device shown in any one of fig. 1 to fig. 2, and for specific implementation and effective effects, reference may be made to the above description, and details are not described herein again.
Fig. 4 is a schematic structural diagram of a device for establishing instant messaging according to the present invention. The device for establishing instant messaging shown in fig. 4 may be referred to as a server simply by means of software and/or hardware. As shown in fig. 4, the apparatus 40 for establishing instant messaging according to this embodiment may include: a receiving module 41, a determining module 42 and a sending module 43.
A receiving module 41, configured to receive subscription information corresponding to a subscription adding instruction sent by a first terminal device; the first terminal device is a terminal device of a first user.
A determining module 42, configured to determine associated user information of the subscription information; the associated user information of the subscription information includes: and other users except the first user with the same subscription condition with the subscription information.
A sending module 43, configured to send the associated user information of the subscription information to the first terminal device.
A receiving module 41, further configured to receive a session request sent by the first terminal device; the session request is sent by the first terminal device after acquiring a session instruction for a second user of the other users.
The sending module 43 is further configured to send a session response to the first terminal device, where the session response is used to enable the first terminal device to create session communication with a second terminal device, where the second terminal device is a terminal device of the second user.
Optionally, the same subscription condition includes: the same as the subscription information and/or the same category to which the subscription information belongs.
Optionally, the receiving module 41 is further configured to receive subscription information corresponding to the subscription deletion instruction sent by the first terminal device.
The means for establishing instant communication 40 may further comprise:
and the updating module is used for updating the subscription information of the first user according to the subscription information corresponding to the subscription deleting instruction to obtain the updated subscription information of the first user.
The apparatus for establishing instant messaging according to this embodiment may execute the method for establishing instant messaging executed by the server shown in any one of fig. 1 to fig. 2, and for specific implementation and effective effects, reference may be made to the above description, which is not described herein again.
Fig. 5 is a schematic structural diagram of a terminal device provided in the present invention. As shown in fig. 5, the terminal device 50 of the present embodiment may include: a memory 51 and a processor 52; the memory 51 is connected to the processor 52.
A memory 51 for storing program instructions.
A processor 52 for calling the program instructions stored in the memory 51 and executing the following steps:
acquiring an input subscription adding instruction;
according to the subscription adding instruction, sending subscription information corresponding to the subscription adding instruction to a server;
receiving the associated user information of the subscription information sent by the server, wherein the associated user information of the subscription information comprises: other users with the same subscription condition with the subscription information;
acquiring an input conversation instruction aiming at a second user in the other users;
sending a session request to the server according to the session instruction;
receiving a session response sent by the server;
according to the session response, establishing session communication with the second terminal equipment; the second terminal device is a terminal device of the second user.
Optionally, the same subscription conditions include: the same as the subscription information and/or the same category to which the subscription information belongs.
Optionally, the processor 52 is further configured to obtain an input subscription deletion instruction; and sending the subscription information corresponding to the subscription deletion instruction to the server according to the subscription deletion instruction, so that the server updates the subscription information of the first user according to the subscription information corresponding to the subscription deletion instruction.
The terminal device provided in this embodiment may execute the method for establishing instant messaging executed by the terminal device shown in any one of fig. 1 to fig. 2, and specific implementation and effective effects thereof can be referred to above, and are not described herein again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and the computer program can be executed by the processor 52 shown in fig. 5 to implement the method for establishing instant messaging, which is executed by the terminal device shown in any embodiment above.
Fig. 6 is a schematic structural diagram of a server provided in the present invention. As shown in fig. 6, the server 60 of the present embodiment may include: a memory 61 and a processor 62; the memory 61 is connected to the processor 62.
A memory 61 for storing program instructions.
A processor 62 for calling the program instructions stored in the memory 61 and executing the following steps:
receiving subscription information corresponding to a subscription adding instruction sent by first terminal equipment; the first terminal equipment is terminal equipment of a first user;
determining the associated user information of the subscription information; the associated user information of the subscription information includes: other users except the first user with the same subscription condition with the subscription information;
sending the associated user information of the subscription information to the first terminal equipment;
receiving a session request sent by the first terminal equipment; the session request is sent by the first terminal device after acquiring a session instruction for a second user in the other users;
and sending a session response to the first terminal device, wherein the session response is used for enabling the first terminal device to establish session communication with a second terminal device, and the second terminal device is the terminal device of the second user.
Optionally, the same subscription condition includes: the same as the subscription information and/or the same category to which the subscription information belongs.
Optionally, the processor 62 is further configured to receive subscription information corresponding to the subscription deletion instruction sent by the first terminal device; and updating the subscription information of the first user according to the subscription information corresponding to the subscription deleting instruction to obtain the updated subscription information of the first user.
The server provided in this embodiment may execute the method for establishing instant messaging executed by the server shown in any one of fig. 1 to fig. 2, and specific implementation and effective effects thereof can be seen from the above description, and are not described herein again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and the computer program can be executed by the processor 62 shown in fig. 60 to implement the method for establishing instant messaging performed by the server shown in any embodiment, and specific implementation and effective effects thereof can be found in the foregoing description, and are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A method for establishing instant messaging, comprising:
acquiring an input subscription adding instruction;
according to the subscription adding instruction, sending subscription information corresponding to the subscription adding instruction to a server;
receiving associated user information of the subscription information sent by the server, wherein the associated user information of the subscription information comprises: information of other users having the same subscription condition as the subscription information;
acquiring an input conversation instruction aiming at a second user in the other users;
sending a session request to the server according to the session instruction;
receiving a session response sent by the server;
according to the session response, establishing session communication with the second terminal equipment; the second terminal device is the terminal device of the second user.
2. The method of claim 1, wherein the same subscription condition comprises: the same as the subscription information and/or the same category to which the subscription information belongs.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
acquiring an input subscription deleting instruction;
and sending the subscription information corresponding to the subscription deletion instruction to the server according to the subscription deletion instruction, so that the server updates the subscription information of the first user according to the subscription information corresponding to the subscription deletion instruction.
4. A method for establishing instant messaging, comprising
Receiving subscription information corresponding to a subscription adding instruction sent by first terminal equipment; the first terminal equipment is terminal equipment of a first user;
determining associated user information of the subscription information; the associated user information of the subscription information includes: other users except the first user with the same subscription condition with the subscription information;
sending the associated user information of the subscription information to the first terminal equipment;
receiving a session request sent by the first terminal equipment; the session request is sent by the first terminal device after acquiring a session instruction for a second user in the other users;
and sending a session response to the first terminal device, wherein the session response is used for enabling the first terminal device to establish session communication with a second terminal device, and the second terminal device is the terminal device of the second user.
5. The method of claim 4, wherein the same subscription condition comprises: the same as the subscription information and/or the same category to which the subscription information belongs.
6. The method of claim 4 or 5, further comprising:
receiving subscription information corresponding to a subscription deletion instruction sent by the first terminal equipment;
and updating the subscription information of the first user according to the subscription information corresponding to the subscription deleting instruction to obtain the updated subscription information of the first user.
7. An apparatus for establishing instant messaging, comprising:
the acquisition module is used for acquiring an input subscription adding instruction;
the sending module is used for sending subscription information corresponding to the subscription adding instruction to a server according to the subscription adding instruction;
a receiving module, configured to receive associated user information of the subscription information sent by the server, where the associated user information of the subscription information includes: other users with the same subscription conditions with the subscription information;
the obtaining module is further configured to obtain an input session instruction for a second user of the other users;
the sending module is further configured to send a session request to the server according to the session instruction;
the receiving module is further configured to receive a session response sent by the server;
the device further comprises:
the establishing module is used for establishing session communication with the second terminal equipment according to the session response; the second terminal device is the terminal device of the second user.
8. An apparatus for establishing instant messaging, comprising:
the receiving module is used for receiving subscription information corresponding to the subscription adding instruction sent by the first terminal equipment; the first terminal equipment is terminal equipment of a first user;
the determining module is used for determining the associated user information of the subscription information; the associated user information of the subscription information includes: other users except the first user with the same subscription condition with the subscription information;
a sending module, configured to send the associated user information of the subscription information to the first terminal device;
the receiving module is further configured to receive a session request sent by the first terminal device; the session request is sent by the first terminal device after acquiring a session instruction for a second user in the other users;
the sending module is further configured to send a session response to the first terminal device, where the session response is used to enable the first terminal device to establish session communication with a second terminal device, and the second terminal device is a terminal device of the second user.
9. A terminal device, comprising: a memory and a processor; the memory is connected with the processor;
the memory to store program instructions;
the processor, for calling the program instructions stored in the memory to execute the method for establishing instant messaging according to any one of the claims 1-3.
10. A server, comprising: a memory and a processor; the memory is connected with the processor;
the memory to store program instructions;
the processor is used for calling the program instructions stored in the memory to execute the method for establishing instant messaging according to any one of the claims 4-6.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of establishing instant communications according to any one of claims 1 to 3.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of establishing instant communications according to any one of claims 4 to 6.
CN201810555928.4A 2018-05-31 2018-05-31 Method, device, equipment and server for establishing instant messaging Active CN108989181B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810555928.4A CN108989181B (en) 2018-05-31 2018-05-31 Method, device, equipment and server for establishing instant messaging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810555928.4A CN108989181B (en) 2018-05-31 2018-05-31 Method, device, equipment and server for establishing instant messaging

Publications (2)

Publication Number Publication Date
CN108989181A CN108989181A (en) 2018-12-11
CN108989181B true CN108989181B (en) 2021-06-01

Family

ID=64540418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810555928.4A Active CN108989181B (en) 2018-05-31 2018-05-31 Method, device, equipment and server for establishing instant messaging

Country Status (1)

Country Link
CN (1) CN108989181B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979044B (en) * 2021-08-10 2023-10-27 中移互联网有限公司 Message management method, node and electronic equipment for message platform

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159703A (en) * 2007-10-09 2008-04-09 施侃晟 Bidirectional interdynamic search method for generating instant communication effect
CN102831202A (en) * 2012-08-08 2012-12-19 中兴通讯股份有限公司 Method and system for pushing recommended friends to users of social network site
CN103200279A (en) * 2013-04-28 2013-07-10 百度在线网络技术(北京)有限公司 Recommending method and cloud server
CN104333506A (en) * 2014-10-24 2015-02-04 北京兴远永网络科技有限公司 Communication terminal contact method and device
CN105677786A (en) * 2015-12-30 2016-06-15 北京万物花开网络技术有限公司 Instant messaging establishing method and device
CN106161186A (en) * 2015-03-31 2016-11-23 Tcl集团股份有限公司 Instant communication method and device
CN106302079A (en) * 2015-05-12 2017-01-04 阿里巴巴集团控股有限公司 Message issuance method in social networks and device
WO2018081966A1 (en) * 2016-11-03 2018-05-11 华为技术有限公司 User association method, terminal and server

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101596707B1 (en) * 2014-07-24 2016-02-23 주식회사 벤플 Method for providing communication service between mobile terminals using near wireless device
CN105812229A (en) * 2014-12-30 2016-07-27 中国移动通信集团公司 Terminal communication method, system and related device
CN107104875B (en) * 2016-02-22 2020-08-25 腾讯科技(深圳)有限公司 Information pushing method and device
CN107302490A (en) * 2017-06-09 2017-10-27 南京跃豚智能科技有限公司 The quick method and system for setting up team's collaboration

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159703A (en) * 2007-10-09 2008-04-09 施侃晟 Bidirectional interdynamic search method for generating instant communication effect
CN102831202A (en) * 2012-08-08 2012-12-19 中兴通讯股份有限公司 Method and system for pushing recommended friends to users of social network site
CN103200279A (en) * 2013-04-28 2013-07-10 百度在线网络技术(北京)有限公司 Recommending method and cloud server
CN104333506A (en) * 2014-10-24 2015-02-04 北京兴远永网络科技有限公司 Communication terminal contact method and device
CN106161186A (en) * 2015-03-31 2016-11-23 Tcl集团股份有限公司 Instant communication method and device
CN106302079A (en) * 2015-05-12 2017-01-04 阿里巴巴集团控股有限公司 Message issuance method in social networks and device
CN105677786A (en) * 2015-12-30 2016-06-15 北京万物花开网络技术有限公司 Instant messaging establishing method and device
WO2018081966A1 (en) * 2016-11-03 2018-05-11 华为技术有限公司 User association method, terminal and server

Also Published As

Publication number Publication date
CN108989181A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN103516908B (en) Auxiliary replys the method and device of communication message
CN110233742B (en) Group establishing method, system, terminal and server
CN106470110B (en) Method and device for sending messages to multiple users in user list in group mode
CN104253686A (en) Account number login method, equipment and system
CN110875871A (en) Management method of instant messaging application and electronic equipment
CN113746722B (en) Information processing method, device, equipment and storage medium
CN102147660B (en) A kind of method and apparatus of the input based on multiple user collaborative editor
CN108989181B (en) Method, device, equipment and server for establishing instant messaging
CN114219466A (en) Transfer information processing method and device, electronic equipment and storage medium
CN111538551A (en) Information processing method and electronic equipment
CN111314201A (en) Application data processing method, system and related equipment
CN106776261B (en) Object testing method and device
CN104836883A (en) Method, equipment and system for processing incoming call
CN111010335A (en) Chat expression sending method and device, electronic equipment and medium
WO2016145921A1 (en) Method and device for selecting service provider service, and computer storage medium
CN106603851A (en) Communication shortcut realizing method and electronic equipment
CA3065341A1 (en) System and method for generating and transmitting automatic reply messages
CN105378789A (en) Creating a contact list and pre-populated user accounts
CN108377217A (en) A kind of real-time communication method and device
CN106453969A (en) Quick communication entry adding method and electronic equipment
CN115022266A (en) Group member adding method, device, equipment and medium
CN105978853A (en) Session scheduling method, scheduling server and terminal
CN112445560A (en) Notification message display method and device, storage medium and electronic device
CN110659096A (en) Method, device, system and storage medium for displaying network topological graph
CN111385409A (en) Communication input method, device, equipment and medium

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