CN113300945A - Instant communication system and method for synchronizing conversation - Google Patents

Instant communication system and method for synchronizing conversation Download PDF

Info

Publication number
CN113300945A
CN113300945A CN202110667092.9A CN202110667092A CN113300945A CN 113300945 A CN113300945 A CN 113300945A CN 202110667092 A CN202110667092 A CN 202110667092A CN 113300945 A CN113300945 A CN 113300945A
Authority
CN
China
Prior art keywords
message
client
server
component
receiver
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.)
Pending
Application number
CN202110667092.9A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202110667092.9A priority Critical patent/CN113300945A/en
Publication of CN113300945A publication Critical patent/CN113300945A/en
Pending legal-status Critical Current

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
    • 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]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • 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/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • 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/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • 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/21Monitoring or handling of messages
    • H04L51/216Handling conversation history, e.g. grouping of messages in sessions or threads

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an instant communication system and method for synchronizing conversation, which mainly relate to the technical field of computers; the system comprises a server and a client; the number of the clients is two, namely a client A and a client B; the client comprises: the message cache component is used for caching a message client when the message is sent and received; the message sending component is used for detecting the message change in the input message module, transmitting the current message to the server and the pushing component, and synchronously updating the message displayed by the sender in the message cache to be the latest message after the message is modified; a message receiving presentation component; the push component is used for detecting the state of a client used by the message receiver and selecting to send a new message prompt or message content and a prompt message; the invention ensures the timeliness of the conversation and realizes a brand new real-time conversation mode and experience.

Description

Instant communication system and method for synchronizing conversation
Technical Field
The invention relates to the technical field of computers, in particular to an instant messaging system and method for synchronizing conversations.
Background
Instant messaging is a terminal service that allows two or more people to use the network to transmit text messages, files, voice and video instantly, and WeChat software, as the most widely used instant messaging software carried on the mobile terminal at the present stage, has many functions and can meet the practical requirements of users. Generally, when the existing mobile-side social software meets the demand of instant messaging, a state is set for reminding an opposite side to check new message reminding, for example, WeChat software, when receiving a message of a contact person, the message reminding is displayed on a mobile phone notification bar, meanwhile, the number of unread messages is displayed in a chat list to remind a user to read the message of the contact person, and the message of the user is interacted in a form of a sentence or a section of chat bubble.
Under the existing instant communication system, two parties of a chat conversation send a message to the other party after editing a sentence or a paragraph of the message, the other party edits a sentence or a paragraph of a character to be replied after seeing the message to reply, the two parties of the chat conversation can not see the typing and editing processes of the other party in real time, the message can be seen only after the other party finishes editing the paragraph of the character, and because a message receiving party receives a prompt, the message can be processed and replied in a non-instant manner, and a time lag effect is generated between a message sender and a receiver for processing the message.
Disclosure of Invention
The invention aims to solve the problems in the prior art and provides an instant messaging system and method for synchronizing conversations, so that two chat parties can mutually see the processes of input editing and deletion of the other chat party in real time without clicking to send, and the timeliness of the conversations is ensured.
In order to achieve the purpose, the invention is realized by the following technical scheme:
an instant communication system with synchronous conversation comprises a server and a client;
the number of the clients is two, namely a client A and a client B;
the client comprises:
the message cache component is used for caching a message client when the message is sent and received;
the message sending component is used for detecting the message change in the input message module, transmitting the current message to the server and the pushing component, and synchronously updating the message displayed by the sender in the message cache to be the latest message after the message is modified;
the message receiving and displaying component is used for receiving and displaying messages;
and the pushing component is used for detecting the state of the client used by the message receiver and selecting to send a new message reminder or message content and a prompt message.
An instant messaging method for synchronizing conversations comprises the following steps:
s1, the message sender enters the client A, opens the chat interface with the message receiver, and begins to edit the message to be sent in the message editing interface;
s2, when the client A detects that the message input area has message change, the client A transmits the message 1 to the server and stores the message 1 to the cache;
s3, the server detects whether the client B of the message receiver is in an online state, namely whether the client B is in an active state, and pushes the message 1 to the client B after detecting that the client B is in the active state;
s4, after receiving the message 1 transmitted by the server, the client B displays the message in the message browsing area of the chat interface, and simultaneously records the message to enter the message cache, so that the message receiver can browse the message 1;
s5, the server side does not detect that the client side B is in an online state and belongs to an offline state, sends the message 1 to the client side B, and simultaneously sends a push message to the client side B to remind a message receiver of browsing;
s6, the message receiver clicks the push message after receiving the message push, the client B is started to enter the chat interface, and the message browsing interface displays the message 1;
s7, the message sender continues to input messages in the message input area, the client A detects that the message input area has message change, the latest obtained message 2 is sent to the server and cached, and the detection interval of the content of the two messages is more than 0.2 second;
s8, after receiving the message 2, the server side synchronously judges whether the client side B is in an online state, if the client side B is in an offline state, the server side repeatedly sends the message, if the client side B is in the offline state, the server side judges whether the current time and the last pushing time are separated by three minutes, if the pushing interval is less than three minutes, new pushing is not sent, only the latest message is transmitted to the client side B, and if the interval is more than three minutes, a new piece of pushing message is sent;
and S9, repeating the steps when the message receiver obtains the message and replies.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides an instant communication system and a method for two parties to synchronously see the typing and editing processes of the other party in real time, through a message sending and receiving mechanism and a message reminding module, when a message sender edits a message, the content is instantly synchronized to a message receiver, the two parties in chat can mutually see the input, editing and deleting processes of the other party in real time without clicking to send, the two parties in chat can synchronously see the other party when inputting and deleting each word in a conversation panel, the timeliness of conversation is ensured, and a brand-new real-time conversation mode and experience are realized.
Drawings
Fig. 1 is a schematic block diagram of the present invention.
Detailed Description
The invention will be further illustrated with reference to the following specific examples. It should be understood that these examples are for illustrative purposes only and are not intended to limit the scope of the present invention. Further, it should be understood that various changes or modifications of the present invention may be made by those skilled in the art after reading the teaching of the present invention, and these equivalents also fall within the scope of the present application.
Example 1: the invention relates to an instant communication system with synchronous conversation, which adopts the technical scheme that:
the client side comprises a message cache component, a message sending component, a message receiving and displaying component and a pushing component of the client side.
The message cache component is used for message client cache during message sending and receiving, and the writing and reading functions of the cache are realized by the message sending and displaying component.
The message sending component detects that the input message module generates message change when the client A receives the input of the message of the sender, transmits the current message to the server, transmits the message to the pushing component, and activates a timer in an input panel in the message sending component. Within 0.2 seconds of the allowable error time frame, the messaging component will again detect whether there is a message in the incoming message module that is inconsistent with the last transmitted message, i.e., whether the sender modified the message within the time frame. If the message in the message module changes, the messaging component will transmit the latest message in the modified, i.e., message input panel, to the server and push component. And synchronously updating the message displayed by the sender in the message cache to be the latest message after the message is modified.
After receiving the message from the message sending component of the client A, the push component detects the state of the client B used by the message receiver. And judging whether the client B is in an online state or an offline state, if the client B is in the online state, sending the message content to a message receiving and displaying group of the client B, and simultaneously, selecting whether a message sender is in an input state to the client B on a chat interface of the client B by judging the state of the client A.
The judgment of the input state of the sender is based on the active change of the content of the sender, the receiver receives the message and is marked into the input state, the input state marking state is started for 2 seconds, if the receiver receives the message again in the period, the time of the timer is set to 2 seconds again, the input state is continued, and if the message is not received in the period, the input state is ended.
When the pushing component judges that the state of the client B is an off-line state, the pushing component pushes the message to the client B, the client B receives the prompt of a new message at the moment, the message receiver is actively prompted to check the message, and the message receiver can enter a chat interface of the client to start chatting by clicking the corresponding pushed message.
When the client B is in an online state, the message receiving and displaying component receives the message received by the pushing component, displays the message in the message area of the client and caches the received message into the message caching component. After receiving the new message again, the message display area refreshes and replaces the old message instantly, meanwhile, the new message covers the old message and enters the cache, the old message cache is deleted and replaced, and the client B does not store any cache of the historical message any more.
Example 2: as shown in fig. 1, the instant messaging method for synchronizing conversations of the present invention includes the following steps:
s1, the message sender enters the client A, opens the chat interface with the message receiver, and begins to edit the message to be sent in the message editing interface;
s2, when the client A detects that the message input area has message change, the client A transmits the message 1 to the server and stores the message 1 to the cache;
s3, the server detects whether the client B of the message receiver is in an online state, namely whether the client B is in an active state, and pushes the message 1 to the client B after detecting that the client B is in the active state;
s4, after receiving the message 1 transmitted by the server, the client B displays the message in the message browsing area of the chat interface, and simultaneously records the message to enter the message cache, so that the message receiver can browse the message 1;
s5, the server side does not detect that the client side B is in an online state and belongs to an offline state, sends the message 1 to the client side B, and simultaneously sends a push message to the client side B to remind a message receiver of browsing;
s6, the message receiver clicks the push message after receiving the message push, the client B is started to enter the chat interface, and the message browsing interface displays the message 1;
s7, the message sender continues to input messages in the message input area, the client A detects that the message input area has message change, the latest obtained message 2 is sent to the server and cached, and the detection interval of the content of the two messages is more than 0.2 second;
s8, after receiving the message 2, the server side synchronously judges whether the client side B is in an online state, if the client side B is in an offline state, the server side repeatedly sends the message, if the client side B is in the offline state, the server side judges whether the current time and the last pushing time are separated by three minutes, if the pushing interval is less than three minutes, new pushing is not sent, only the latest message is transmitted to the client side B, and if the interval is more than three minutes, a new piece of pushing message is sent;
and S9, repeating the steps when the message receiver obtains the message and replies.

Claims (2)

1. An instant messaging system with synchronous conversation is characterized by comprising a server and a client;
the number of the clients is two, namely a client A and a client B;
the client comprises:
the message cache component is used for caching a message client when the message is sent and received;
the message sending component is used for detecting the message change in the input message module, transmitting the current message to the server and the pushing component, and synchronously updating the message displayed by the sender in the message cache to be the latest message after the message is modified;
the message receiving and displaying component is used for receiving and displaying messages;
and the pushing component is used for detecting the state of the client used by the message receiver and selecting to send a new message reminder or message content and a prompt message.
2. An instant messaging method for synchronizing conversations, comprising the steps of:
s1, the message sender enters the client A, opens the chat interface with the message receiver, and begins to edit the message to be sent in the message editing interface;
s2, when the client A detects that the message input area has message change, the client A transmits the message 1 to the server and stores the message 1 to the cache;
s3, the server detects whether the client B of the message receiver is in an online state, namely whether the client B is in an active state, and pushes the message 1 to the client B after detecting that the client B is in the active state;
s4, after receiving the message 1 transmitted by the server, the client B displays the message in the message browsing area of the chat interface, and simultaneously records the message to enter the message cache, so that the message receiver can browse the message 1;
s5, the server side does not detect that the client side B is in an online state and belongs to an offline state, sends the message 1 to the client side B, and simultaneously sends a push message to the client side B to remind a message receiver of browsing;
s6, the message receiver clicks the push message after receiving the message push, the client B is started to enter the chat interface, and the message browsing interface displays the message 1;
s7, the message sender continues to input messages in the message input area, the client A detects that the message input area has message change, the latest obtained message 2 is sent to the server and cached, and the detection interval of the content of the two messages is more than 0.2 second;
s8, after receiving the message 2, the server side synchronously judges whether the client side B is in an online state, if the client side B is in an offline state, the server side repeatedly sends the message, if the client side B is in the offline state, the server side judges whether the current time and the last pushing time are separated by three minutes, if the pushing interval is less than three minutes, new pushing is not sent, only the latest message is transmitted to the client side B, and if the interval is more than three minutes, a new piece of pushing message is sent;
and S9, repeating the steps when the message receiver obtains the message and replies.
CN202110667092.9A 2021-06-16 2021-06-16 Instant communication system and method for synchronizing conversation Pending CN113300945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110667092.9A CN113300945A (en) 2021-06-16 2021-06-16 Instant communication system and method for synchronizing conversation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110667092.9A CN113300945A (en) 2021-06-16 2021-06-16 Instant communication system and method for synchronizing conversation

Publications (1)

Publication Number Publication Date
CN113300945A true CN113300945A (en) 2021-08-24

Family

ID=77328437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110667092.9A Pending CN113300945A (en) 2021-06-16 2021-06-16 Instant communication system and method for synchronizing conversation

Country Status (1)

Country Link
CN (1) CN113300945A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238108A (en) * 2011-06-28 2011-11-09 北京神州泰岳软件股份有限公司 Off-line message transmission method
JP2013196228A (en) * 2012-03-18 2013-09-30 Spinshell Co Ltd Method, system, server device, terminal device and program for transmission/reception of instant message
US20130304835A1 (en) * 2012-05-11 2013-11-14 Alibaba Group Holding Limited Transmitting and displaying offline data
CN104216674A (en) * 2014-09-10 2014-12-17 广东小天才科技有限公司 Method and device for synchronously displaying input information
CN104734936A (en) * 2013-12-19 2015-06-24 中兴通讯股份有限公司 Instant message processing method, device and system
CN107193795A (en) * 2016-03-15 2017-09-22 北京北信源软件股份有限公司 A kind of instant messaging new message notification method based on content
CN108347368A (en) * 2017-01-24 2018-07-31 中国移动通信有限公司研究院 A kind of instant communication method, device send terminal and receive terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238108A (en) * 2011-06-28 2011-11-09 北京神州泰岳软件股份有限公司 Off-line message transmission method
JP2013196228A (en) * 2012-03-18 2013-09-30 Spinshell Co Ltd Method, system, server device, terminal device and program for transmission/reception of instant message
US20130304835A1 (en) * 2012-05-11 2013-11-14 Alibaba Group Holding Limited Transmitting and displaying offline data
CN104734936A (en) * 2013-12-19 2015-06-24 中兴通讯股份有限公司 Instant message processing method, device and system
CN104216674A (en) * 2014-09-10 2014-12-17 广东小天才科技有限公司 Method and device for synchronously displaying input information
CN107193795A (en) * 2016-03-15 2017-09-22 北京北信源软件股份有限公司 A kind of instant messaging new message notification method based on content
CN108347368A (en) * 2017-01-24 2018-07-31 中国移动通信有限公司研究院 A kind of instant communication method, device send terminal and receive terminal

Similar Documents

Publication Publication Date Title
US11258737B2 (en) Instant messaging method, apparatus and system based on email system
US10911383B2 (en) Spam filtering and person profiles
US8572171B1 (en) System and method for providing enhanced persistent communications
US20100235758A1 (en) Method, System and Apparatus for Sorting Topics within a Group
US8849322B2 (en) Systems and methods for sharing threaded conversations on mobile communications devices
US9021028B2 (en) Systems and methods for spam filtering
US20100250693A1 (en) Method, apparatus for converting group message and system for exchanging group message
US7822822B2 (en) Instant messaging system configured to facilitate event plan management
US20140372330A1 (en) Social network user information association method and device
KR20070085041A (en) Electronic message forwarding
CN104052655A (en) Group chatting method and instant messaging client-side
CA2867051A1 (en) Information sharing method, device and storage medium
WO2011144167A1 (en) Method, device and system for instant messaging
WO2009089707A1 (en) Information displaying method and user terminal thereof
CN101094232A (en) Method and system for displaying conversation state of the other party in instant communication tool
CN110768895A (en) Message prompting method and device, electronic equipment and storage medium
CN103269310A (en) Method and system for releasing group exchange messages
US20090234633A1 (en) Systems and methods for enabling inter-language communications
SG183552A1 (en) Method and apparatus for exchanging information between service platforms
CN103269308A (en) Method and system for releasing interaction information of communication groups
EP1714447A1 (en) Method, device and system for conditional forwarding of an im message
CN101119329A (en) Method to display fellow on-line state in instant communication instrument
CN103179023A (en) Communication method and communication device integrating instant communication and email communication
CN103051513A (en) Information real-time interaction method and system
CN113300945A (en) Instant communication system and method for synchronizing conversation

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210824