CN105306348A - Solving method for delayed and leaked messages in group chat and instant messaging tool - Google Patents
Solving method for delayed and leaked messages in group chat and instant messaging tool Download PDFInfo
- Publication number
- CN105306348A CN105306348A CN201510760494.8A CN201510760494A CN105306348A CN 105306348 A CN105306348 A CN 105306348A CN 201510760494 A CN201510760494 A CN 201510760494A CN 105306348 A CN105306348 A CN 105306348A
- Authority
- CN
- China
- Prior art keywords
- group chat
- message
- messages
- field
- leaked
- 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
Links
Abstract
The invention provides a solving method for delayed and leaked messages in a group chat, comprising the steps of: adding an ID field into each group chat message, wherein the ID fields are progressively increased according to the insertion sequence of the group chat messages; adopting the ID field of the latest group chat message read each time as a demarcation point for distinguishing the historical messages and the new messages; and then taking out the group chat messages with the ID fields larger than the demarcation point, sequentially displaying on a group chat page, and at last adopting the ID field of the last group chat message as the new demarcation point. The solving method for the delayed and leaked messages in the group chat is high in timeliness, and more beneficial to user experience. The problem that, as a time period is taken backward in the prior art, time periods for taking the messages are overlapped and then tedious treatment of filtering repeated messages by many times of comparison is needed before display of the messages, and thereby real-time display of the messages is influenced due to many times of comparison in the case of many people and frequent sending of messages, is solved.
Description
Technical field
The present invention relates to a kind of field of network communication, there is the solution of prolonging and leaking message in especially a kind of network communication tool group chat.
Background technology
The application of instant messaging is quite extensive, and e-commerce website, social network sites, social APP application software are all used, and it can improve user's viscosity of website or application software greatly as the effective communication way of one.At present, there is the situation of leaking message phenomenon in instant messaging, that is, user is when the group chat page and other user carry out group chat, there is leakage message phenomenon in various degree in some client occasionals, the chat messages that namely other user sends has a unreceived situation of other message.
Chat feature generally has single chat and group chat, ensures that message can, immediately in order accurately without leaking and unduplicatedly sending to recipient, be the basic demand realizing chat feature.The relative group chat recipient of single chat only has one, can determine whether message is read, gets unread message in chronological order at every turn by a mark.Group chat function is then much complicated.The existing scheme (here to be as the criterion based on database realizing chat) realizing group chat function at present, when reading new information, time period of retrodicting forward is avoided because network delay causes when getting the message of certain period, the message sent in this period also no warehouse-in and missing.Owing to retrodicting all forward a time period when reading new information at every turn, the time period is made to have overlap, for avoiding because time period overlap causes part messages to repeat to read, front end needs reservation one to record array, for recording the ID obtaining message at every turn, each all the message obtained and the message id in record array to be compared, the only message of display in record array, more new record array after having shown.
Current existing technology, avoid group chat because of network delay to leak message by a time period of retrodicting forward, the time of retrodicting exists uncertain, if the time of retrodicting is too short because of the quality of network, when network delay is larger, or there is the situation of other leakage message extremely individual; If long, then the message number at every turn repeating to get can increase, and can strengthen the pressure of database server.Want a given time value reasonably retrodicted need determine through repeatedly testing under multiple network environment.And when receipts connect new information, repetition message need be filtered out show again through comparing, send frequently in situation in message, the size of message at every turn obtained is comparatively large, and this just means and compares often, can affect the real-time of message sink, be unfavorable for Consumer's Experience, and implement also more complicated.
At present, the method for dealing with problems has a variety of, and inappropriate method can only, from processing problem on the surface, only have the best way thoroughly to deal with problems.Therefore, how to provide a kind of simple and effective solution group chat because of the method for network delay leakage message, take into account Consumer's Experience, problem now anxious to be resolved beyond doubt simultaneously.
Summary of the invention
The technical problem that the present invention need solve is to provide a kind of simple and effective group chat and prolongs the solution of leaking message.
For solving above-mentioned technical problem, the present invention devises a kind of group chat and prolongs the solution of leaking message, and it comprises the following steps: step 1: for each bar group chat message increases id field, id field increases progressively by group chat message insertion sequence; Step 2: using the id field of the up-to-date group chat message read at every turn as the separation distinguishing history message and new information; Step 3: take out the group chat message that id field is greater than described separation, is presented on the group chat page according to suitable, and using the id field of last group chat message as new separation.
Improve further as the present invention, take out the step that id field is greater than the group chat message of described separation in step 3 and timer is set.
Improve further as the present invention, the interval time of described set timer is 1s.
Present invention also offers a kind of immediate communication tool, comprise above-mentioned group chat and prolong the solution of leaking message.Described immediate communication tool is used as message stores and forwarding based on database.
The invention provides a kind of group chat and prolong the solution of leaking message, the attribute that the id field that effectively make use of group chat message increases progressively by insertion sequence, using that the up-to-date message id read at every turn as the boundary of history message and new information, read id field from database be greater than the new information of described separation and show, deal with very simple and convenient, simplifying prior art time period of retrodicting forward solves network delay and leaks the scheme of message.Real-time of the present invention is higher, is more conducive to Consumer's Experience.Avoid prior art because of retrodict a time period thus cause the time period cancelling breath overlapping, the loaded down with trivial details process that needs repeatedly relatively to come overanxious repetition message before message display and therefore and, the transmission message many people caused frequently in situation repeatedly relatively on the impact that message shows in real time.
Embodiment
Technical scheme of the present invention is understood better in order to make relevant technical staff in the field, below in conjunction with embodiment of the present invention, technical scheme in embodiment of the present invention is clearly and completely described, obviously, described execution mode is only the present invention's part execution mode, instead of whole execution modes.
The invention provides a kind of group chat and prolong the solution of leaking message, the attribute that the id field that effectively make use of group chat message increases progressively by insertion sequence, using that the up-to-date message id read at every turn as the boundary of history message and new information, read id field from database be greater than the new information of described separation and show, deal with very simple and convenient.
The invention provides a kind of group chat to prolong and leak the solution of message and comprise the following steps:
For each bar group chat message increases id field, id field increases progressively by group chat message insertion sequence; And using the id field of the up-to-date group chat message read at every turn as the separation distinguishing history message and new information; Take out the group chat message that id field is greater than described separation again, be presented on the group chat page according to suitable, and using the id field of last group chat message as new separation.The attribute that the id field that the present invention make use of group chat message here increases progressively by insertion sequence, using that the up-to-date Message ID field read at every turn as the separation distinguishing history message and new information, the value of this boundary id field only need be recorded in front end, in ajax asynchronous refresh mode in the process function of timer, the value of the id field of record is passed to service end in post mode, and from database, get all message being greater than this cut off value, arrange by ID ascending order, ask, in successful call back function, the message obtained is presented at the group chat page successively at ajax, and upgrade Record ID, using the value of the last item Message ID field as new boundary ID point.The whole process cancelling breath does not rely on message transmitting time, just avoids with the environmental factor of network delay during timeslice cancellation breath yet.
The present invention takes out the step that id field is greater than the group chat message of described separation and is provided with timer, namely from database, reads every the 1s time group chat message that id field is greater than described separation.
Group chat of the present invention is prolonged the solution of leaking message and is applied in immediate communication tool, and this immediate communication tool is used as message stores and forwarding based on database.
Real-time of the present invention is higher, is more conducive to Consumer's Experience.Avoid prior art because of retrodict a time period thus cause the time period cancelling breath overlapping, the loaded down with trivial details process that needs repeatedly relatively to come overanxious repetition message before message display and therefore and, the transmission message many people caused frequently in situation repeatedly relatively on the impact that message shows in real time.
Below only have expressed one embodiment of the present invention, it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.
Claims (5)
1. group chat prolongs a solution of leaking message, it is characterized in that, comprises the following steps:
Step 1: for each bar group chat message increases id field, id field increases progressively by group chat message insertion sequence;
Step 2: using the id field of the up-to-date group chat message read at every turn as the separation distinguishing history message and new information;
Step 3: take out the group chat message that id field is greater than described separation, is presented on the group chat page according to suitable, and using the id field of last group chat message as new separation.
2. group chat according to claim 1 is prolonged and is leaked the solution of message, it is characterized in that, takes out the step that id field is greater than the group chat message of described separation and arrange timer in step 3.
3. group chat according to claim 2 prolongs the solution of leaking message, and it is characterized in that, the interval time of described set timer is 1s.
4. an immediate communication tool, is characterized in that, the group chat comprised in the claims 1-3 described in any one prolongs the solution of leaking message.
5. immediate communication tool according to claim 4, is characterized in that, described immediate communication tool is used as message stores and forwarding based on database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510760494.8A CN105306348A (en) | 2015-11-10 | 2015-11-10 | Solving method for delayed and leaked messages in group chat and instant messaging tool |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510760494.8A CN105306348A (en) | 2015-11-10 | 2015-11-10 | Solving method for delayed and leaked messages in group chat and instant messaging tool |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105306348A true CN105306348A (en) | 2016-02-03 |
Family
ID=55203121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510760494.8A Pending CN105306348A (en) | 2015-11-10 | 2015-11-10 | Solving method for delayed and leaked messages in group chat and instant messaging tool |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105306348A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109818853A (en) * | 2019-02-19 | 2019-05-28 | 北京达佳互联信息技术有限公司 | Message treatment method, device, server, electronic equipment and computer readable storage medium |
CN110231972A (en) * | 2019-05-27 | 2019-09-13 | 维沃移动通信有限公司 | A kind of message display method and terminal device |
CN110445706A (en) * | 2019-07-17 | 2019-11-12 | 北京达佳互联信息技术有限公司 | Message display method, device, electronic equipment and storage medium |
CN111343056A (en) * | 2018-12-19 | 2020-06-26 | 美的集团股份有限公司 | Communication method, storage medium, equipment, receiving terminal and sending terminal |
CN111585774A (en) * | 2020-03-24 | 2020-08-25 | 福建天泉教育科技有限公司 | Session updating method and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101588393A (en) * | 2009-07-02 | 2009-11-25 | 杭州华三通信技术有限公司 | Method of state management based on real-time session |
CN102740274A (en) * | 2011-04-08 | 2012-10-17 | 腾讯科技(深圳)有限公司 | Method, device, and system of multi-terminal update information reminder synchronization |
CN103051520A (en) * | 2013-01-05 | 2013-04-17 | 北京小米科技有限责任公司 | Method and device for synchronizing offline session messages in instant messaging tool |
CN103220206A (en) * | 2012-01-19 | 2013-07-24 | 阿里巴巴集团控股有限公司 | Message sending method and device and message receiving method and device |
CN104518949A (en) * | 2013-09-27 | 2015-04-15 | 北京新媒传信科技有限公司 | Method and system for message prompt |
CN104601450A (en) * | 2010-05-07 | 2015-05-06 | 阿里巴巴集团控股有限公司 | Instant messaging (IM) based information reminding method and device |
CN104836721A (en) * | 2015-03-27 | 2015-08-12 | 小米科技有限责任公司 | Group session message reminding method and group session message reminding device |
-
2015
- 2015-11-10 CN CN201510760494.8A patent/CN105306348A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101588393A (en) * | 2009-07-02 | 2009-11-25 | 杭州华三通信技术有限公司 | Method of state management based on real-time session |
CN104601450A (en) * | 2010-05-07 | 2015-05-06 | 阿里巴巴集团控股有限公司 | Instant messaging (IM) based information reminding method and device |
CN102740274A (en) * | 2011-04-08 | 2012-10-17 | 腾讯科技(深圳)有限公司 | Method, device, and system of multi-terminal update information reminder synchronization |
CN103220206A (en) * | 2012-01-19 | 2013-07-24 | 阿里巴巴集团控股有限公司 | Message sending method and device and message receiving method and device |
CN103051520A (en) * | 2013-01-05 | 2013-04-17 | 北京小米科技有限责任公司 | Method and device for synchronizing offline session messages in instant messaging tool |
CN104518949A (en) * | 2013-09-27 | 2015-04-15 | 北京新媒传信科技有限公司 | Method and system for message prompt |
CN104836721A (en) * | 2015-03-27 | 2015-08-12 | 小米科技有限责任公司 | Group session message reminding method and group session message reminding device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111343056A (en) * | 2018-12-19 | 2020-06-26 | 美的集团股份有限公司 | Communication method, storage medium, equipment, receiving terminal and sending terminal |
CN111343056B (en) * | 2018-12-19 | 2021-08-31 | 美的集团股份有限公司 | Communication method, storage medium, equipment, receiving terminal and sending terminal |
CN109818853A (en) * | 2019-02-19 | 2019-05-28 | 北京达佳互联信息技术有限公司 | Message treatment method, device, server, electronic equipment and computer readable storage medium |
CN110231972A (en) * | 2019-05-27 | 2019-09-13 | 维沃移动通信有限公司 | A kind of message display method and terminal device |
CN110445706A (en) * | 2019-07-17 | 2019-11-12 | 北京达佳互联信息技术有限公司 | Message display method, device, electronic equipment and storage medium |
CN111585774A (en) * | 2020-03-24 | 2020-08-25 | 福建天泉教育科技有限公司 | Session updating method and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105306348A (en) | Solving method for delayed and leaked messages in group chat and instant messaging tool | |
JP2018529148A (en) | Group message prompt method and apparatus for instant messaging application | |
US10169740B2 (en) | Tag cloud buddy list for messaging contacts | |
RU2589327C2 (en) | Method and device for sending message to user or users of group through microblog | |
CN103902253B (en) | Information processing method and system based on ios platform | |
US10165111B2 (en) | Identifying an unknown contact | |
RU2011154344A (en) | INFORMATION AGGREGATION SERVICE | |
CN109672543B (en) | Group event management method and device | |
CN109582655B (en) | Method and device for positioning system log and computer readable storage medium | |
CN105337841B (en) | Information processing method and system, client and server | |
CN105430317B (en) | A kind of video background setting method and terminal device | |
CN105791099A (en) | Message prompting method, device and system | |
TW201412059A (en) | Method and equipment for acquiring geographical location mentioned in chatting content | |
CN108667713A (en) | Public platform is attended a banquet overtime based reminding method, device, equipment and storage medium | |
CN105100062A (en) | Information push method, device and system | |
CN107707529A (en) | A kind of client validation method for realizing limitation identifying code transmission times | |
CN104320463A (en) | Queuing information acquiring method and device for mobile terminal and queuing information providing method and device | |
CN108924040A (en) | Information interacting method and system | |
CN104184871A (en) | Method and device for prompting crank call number | |
CN105897840A (en) | Advertisement data transmission method, device and system | |
CN106209582B (en) | Message information processing method and device and terminal equipment | |
CN106384159A (en) | Judge meeting appointment method and device applied to court system | |
CN103905661A (en) | Message forwarding method and cloud server | |
CN105530168B (en) | The synchronous method and system of instant messaging event | |
CN105491223B (en) | Information processing method, related equipment and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20160203 |