CN101119327A - Instant chatting implementation system and method thereof - Google Patents

Instant chatting implementation system and method thereof Download PDF

Info

Publication number
CN101119327A
CN101119327A CNA2006101106390A CN200610110639A CN101119327A CN 101119327 A CN101119327 A CN 101119327A CN A2006101106390 A CNA2006101106390 A CN A2006101106390A CN 200610110639 A CN200610110639 A CN 200610110639A CN 101119327 A CN101119327 A CN 101119327A
Authority
CN
China
Prior art keywords
message
chat
client
server end
xmlhttprequest
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
CNA2006101106390A
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 CNA2006101106390A priority Critical patent/CN101119327A/en
Publication of CN101119327A publication Critical patent/CN101119327A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention discloses a system and method of instant communication. Wherein, the method comprises the following steps: users inputs chatting information using a client that is embedded in a browser web; the client encapsulates the chatting information into XML format and sends the information to the server using the XMLHttpRequest massage; the server encapsulates the new chatting information into XML format and sends the information to the client using XMLHttpRequset massage; the client displays the new chatting information to the users. By embedding the client in to the web and client and server communicating using XMLHttpRequest massage. The present invention makes the users who are browsing a same web and are interested in a same topic can communicate instantly and enriches prior communication methods efficiently.

Description

A kind of instant chat is realized system and method
Technical field
The present invention relates to immediate communication tool, particularly be embedded into the instant messenger of webpage.
Background technology
The Internet has been acknowledged as the fourth media, and in general, first three characteristic for medium is: newpapers and periodicals are easy to carry about with one, broadcasting whenever and wherever possible, seeing is believing for TV, and the Internet can get up to discuss common topic to identical hobby, same concerns, people's polymerization of being in the strange land, as BBS, community etc.
But the defective of BBS, chatroom is, though it be with the different themes polymerization different netizens, this thing of theme is still too wide in range, so, common in BBS, community, lack correlation between each model sometimes.Follow-up after the article is though theme is clear and definite, because the randomness of " having visited this place " formula is difficult to set off a discussion.
Messenger, the OICQ of Tengxun and POPO etc.
Yet above-mentioned MSN all needs the install software client, and this just is provided with some obstacles to the certain user, and (as not allowing the environment of careless install software, as the Internet bar) possibly can't find corresponding chat software under some environment, just can't chat.So the chat software of current trend all provides the webpage chat, as long as provide the address login of webpage chat just can chat at them.
Above-mentioned various exchange waies all can't provide the service that the user that browses same web site or webpage can be exchanged immediately, but the such demand of exist actually.During world cup, have a lot of football fans and all can browse the webpage that result of the match is announced, like this, the user who browses result of the match simultaneously may have the demand of instant interchange, deliver view, also can form positive negative side and polemic aspects such as team's performance, team member's performances.And for example, the user who browses the same IT technology page also has the demand of instant interchange, exchanges each other the view of this technology etc.
Therefore be necessary to provide a kind of service, make the user who browses same web site or webpage to exchange immediately, accomplish that theme is clear and definite, the people with same interest is fully set off a discussion, the participant also can in time see other people feedback.
Summary of the invention
The object of the present invention is to provide a kind of instant chat to realize system and method, for making the service of visiting same web page or same topic users interest being provided instant interchange.
To achieve these goals, the invention provides a kind of instant chat and realize system, comprise the client and server end, described client is embedded in the webpage of browser, wherein, described client comprises family speech operational module, Ajax engine and applied logic module and chat message display module, wherein:
The described user operational module of making a speech is used to import chat message, and calls described Ajax engine and applied logic module by JavaScript;
Described Ajax engine and applied logic module, send to server end after being used for chat message utilized XMLHttpRequest message encapsulation, and be used for the XMLHttpRequest message that the reception server end returns, and extract the chat message in the XMLHttpRequest message that server end returns;
The chat message display module is used for the chat message of the XMLHttpRequest message that the display server end returns;
Described server end is used to receive and resolve the XMLHttpRequest message of Ajax engine and the transmission of applied logic module, and preservation chat message wherein, the chat message that also is used for preserving sends to the Ajax engine and the applied logic module of the client of dialogue by XMLHttpRequest message.
Above-mentioned instant chat is realized system, wherein, described server end also is used to utilize XMLHttpRequest message to send particular message to client, described Ajax engine and applied logic module also are used to receive and resolve the XMLHttpRequest message that comprises particular message, and described chat message display module also is used to show described particular message.
Above-mentioned instant chat is realized system, wherein, distinguishes by type of message between the different particular message, and described chat message display module is used for showing described particular message at correspondence position.
Above-mentioned instant chat is realized system, and wherein, described server end comprises a system status monitoring module, is used for adding up according to the data of database.
Above-mentioned instant chat is realized system, and wherein, server end comprises a system management module, be used to realize server startup, close, the maintenance of database.
In order better to realize above-mentioned purpose, the present invention also provides a kind of instant chat implementation method, comprises the steps:
Step S1, user utilize the client input chat message that is embedded into browsing device net page;
Step S2, client is packaged into the XML form with chat message, and utilizes XMLHttpRequest message to send to server end;
Step S3, server end is packaged into the XML form according to rule with new chat message, and utilizes XMLHttpRequest message to send to client;
Step S4, client represents new chat message to the user.
Above-mentioned instant chat implementation method, wherein, described chat message comprises speech user ID, chat object ID, chatroom ID and speech content.
Above-mentioned instant chat implementation method, wherein, described rule is specially:
Receive the chat message that upgrades involved client behind the chat message that client sends; Or
Indicate the chat message that upgrades corresponding client according to the user; Or
Regularly upgrade the chat message of client.
Above-mentioned instant chat implementation method, wherein, described rule is to receive when upgrading the chat message of involved client behind the chat message that client sends, described step S3 is specially: server end is packaged into the XML form with the chat message of receiving, and utilizes XMLHttpRequest message that this chat message is broadcast to chat object ID clients corresponding.
Above-mentioned instant chat implementation method, wherein, described rule is that described step S3 specifically comprises when indicating the chat message that upgrades corresponding client according to the user:
Step S31, server end receive the XML form chat message update request that user side sends;
Step S32, server end is from database lookup and obtain the new chat message of corresponding client;
Step S33, server end utilize XMLHttpRequest message to return to corresponding client after the new chat message of corresponding client is packaged into the XML form.
Above-mentioned instant chat implementation method, wherein, the maximum ID of chat message that described chat message update request comprises user ID, chatroom ID and obtained last time, among the described step S32 ', new chat message is the chat message of ID greater than the maximum ID of the chat message that obtained last time.
Above-mentioned instant chat implementation method, wherein, when described rule was upgraded the chat message of client for timing, described step S3 was specially: server end utilizes the XMLHttpRequest information broadcast to send to client according to periodically the chat message that upgrades being packaged into the XML form.
Above-mentioned instant chat implementation method, wherein, among the step S4, client is obtained chat message by the attribute of JavaScript call XML HttpRequest, and upgrades chat message by the API that calls DOM.
Above-mentioned instant chat implementation method wherein, also comprises:
Server end utilizes XMLHttpRequest message to send particular message to client;
Client receives and resolves the XMLHttpRequest message that comprises particular message;
Client shows described particular message.
Above-mentioned instant chat implementation method, wherein, different particular message are distinguished by type of message, and are shown in ad-hoc location.
Above-mentioned instant chat implementation method wherein, also comprises: the client scheduled time, server end did not upgrade the chat message of described client when not making a speech.
Above-mentioned instant chat implementation method, wherein, the communication data between client and the server end is an enciphered data.
Above-mentioned instant chat implementation method, wherein, client is stored in the server memory with latest data of communicating by letter and frequently-used data between the server end.
Above-mentioned instant chat implementation method, wherein, also comprise: the user utilizes XMLHttpRequest message to send the XML form and utilize the registration of type of message differentiation, the request of nullifying, land, shielding specific user's speech, add debate, switch the chatroom, call by name to server end by client, server end calls corresponding servlet according to type of message and handles, and returns the client process result by XMLHttpRequest message.
Instant chat of the present invention realizes that system and method is by being embedded into webpage with client, the client and server end communicates by XMLHttpRequest message simultaneously, make and browse the same page or can realize very easily interchange immediately, enriched existing communication means effectively same topic users interest.
Description of drawings
Fig. 1 is the structural representation that instant chat of the present invention is realized system;
Fig. 2 is the schematic flow sheet of first embodiment of instant chat implementation method of the present invention;
Fig. 3 is the schematic flow sheet of second embodiment of instant chat implementation method of the present invention;
Fig. 4 is the schematic flow sheet of the 3rd embodiment of instant chat implementation method of the present invention.
Embodiment
Instant chat realization system and method for the present invention carries out information interchange for convenience of network user real-time interactive ground in Intemet or enterprise network and develops.Realize system and method by instant chat of the present invention, the network user need just can not carry out instant message with the personnel that use system of the present invention at any client software of installation or any plug-in unit on the local computing fully and exchange on certain website or webpage, the present invention allows each participant can both obtain up-to-date information for the user who pays close attention to a webpage or topic simultaneously provides very easily intercommunion platform in real time.
Below in conjunction with different embodiment the present invention is further elaborated.
<the first embodiment 〉
In the first embodiment of the present invention, situation about upgrading in time with chat message describes.
As shown in Figure 1, instant chat realization of the present invention system comprises client 1 and server end 2 two large divisions, data interchange format between the two is XML (eXtensible Markup Language, extend markup language) form, wherein client is embedded in the webpage of browser (as IE, Firefox, Maxthon etc.), client 1 comprises user make a speech operational module 11, Ajax (Asynshrounous JavaScriptand XML) engine and applied logic module 12 and chat message display module 13, wherein:
User's operational module 11 of making a speech is used to import chat message, calls Ajax engine and applied logic module 12 by JavaScript;
Ajax engine and applied logic module 12, be used for sending to server end 2 after chat message with speech operational module 11 utilizes XMLHttpRequest message encapsulation, and be used for the XMLHttpRequest message that reception server end 2 returns, and resolve the chat message that extracts in the XMLHttpRequest message after this XMLHttpRequest message and send to chat message display module 13;
Chat message display module 13 is used to show chat message.
Wherein, above-mentioned chat message comprises and comprises following content at least: speech user ID, chat object ID, chatroom ID and speech content.
If chat then can be omitted liking all objects.
Server end 2 is used to receive and resolve the XMLHttpRequest message of Ajax engine and 12 transmissions of applied logic module, and preserve chat message in this XMLHttpRequest message, also be used for this chat message is sent to by XMLHttpRequest message the client of dialogue.
Other all user's speeches are that example describes instant chat implementation method of the present invention to the chatroom to give tacit consent to a user below, as shown in Figure 2, comprise the steps:
Step 21, the user of user by the client operational module input chat message of making a speech;
To the make a speech chat message of operational module of step 22, the Ajax engine of client and applied logic module is packaged into the XML form, and utilizes XMLHttpRequest message to send to server end;
Step 23, server end receives and resolves this XMLHttpRequest message, preserves the chat message in the XMLHttpRequest message;
Step 24, server end is packaged into the XML form with this chat message, and utilizes XMLHttpRequest message this chat message to be broadcast to the Ajax engine and the applied logic module of all clients;
Step 25, Ajax engine and applied logic module receive and analyzing XML HttpRequest message, and the chat message in the extraction XMLHttpRequest message sends to the chat message display module of client;
Step 26, client the chat message display module chat message is represented to the user.
At this also can be that the chat message display module obtains chat message by attribute and the method for JavaScript call XML HttpRequest, the step of going forward side by side DOM (Document Object Model, document dbject model) API (Application Programming Interface, application programming interfaces) upgrades the chat message in the chat message display module.
When the user when designated user is made a speech, comprise the chat object ID in the XMLHttpRequest message that client sends, in the step 24, server end utilizes XMLHttpRequest message this chat message to be sent to the Ajax engine and the applied logic module of chat object ID clients corresponding after this chat message is packaged into the XML form.
<the second embodiment 〉
In the second embodiment of the present invention, with the user ask chat message more news describe.
Compare with the first embodiment of the present invention, the instant chat among second embodiment realizes that the client of system also comprises a chat message update module, and the flow process of concrete instant chat implementation method comprises the steps: as shown in Figure 3
Step 31, the user of user by the client operational module input chat message of making a speech;
To the make a speech chat message of operational module of step 32, the Ajax engine of client and applied logic module is packaged into the XML form, and utilizes XMLHttpRequest message to send to server end;
Step 33, server end receives and resolves this XMLHttpRequest message, preserves the chat message in the XMLHttpRequest message;
Step 34, chat message update module are indicated according to the user and are sent the chat message update inquiry information to Ajax engine and applied logic module; At this, can be periodically to send, also can send at any time according to user's indication;
Step 35, Ajax engine and applied logic module are packaged into the XML form after receiving the chat message update inquiry information, and utilize XMLHttpRequest message to send to server end, the maximum ID of chat message that this XMLHttpRequest message comprises user ID, chatroom ID and obtained last time;
Step 36, after server end receives XMLHttpRequest message, obtain the new chat message of this chatroom, be the chat message of ID greater than the maximum ID of the chat message that obtained the last time in the XMLHttpRequest message, and after being packaged into the XML form, utilize XMLHttpRequest message to return Ajax engine and applied logic module;
Step 37, Ajax engine and applied logic module parses XMLHttpRequest message are obtained new chat message wherein, and send to client the chat message display module;
Step 38, client the chat message display module chat message is represented to the user.
At this also can be that the chat message display module obtains chat message by attribute and the method for JavaScript call XML HttpRequest, and the step of going forward side by side is upgraded chat message in the chat message display module with the API of DOM.
<the three embodiment 〉
In the third embodiment of the present invention, describe with the situation of server end to the client push chat message.
The flow process of instant chat implementation method of the present invention comprises the steps: as shown in Figure 4
Step 41, the user of user by the client operational module input chat message of making a speech;
To the make a speech chat message of operational module of step 42, the Ajax engine of client and applied logic module is packaged into the XML form, and utilizes XMLHttpRequest message to send to server end;
Step 43, server end receives and resolves this XMLHttpRequest message, preserves the chat message in the XMLHttpRequest message;
Step 44, server end periodically is packaged into the XML form with the chat message that upgrades, and utilizes the XMLHttpRequest information broadcast to send to the Ajax engine and the applied logic module of all clients; In this step, the chat message that sends in the message of each client might be different, because different users might be only to one or two people's speech, rather than to everyone speech;
Step 45, Ajax engine and applied logic module parses XMLHttpRequest message are obtained new chat message wherein, and send to client the chat message display module; At this also can be that the chat message display module obtains chat message by attribute and the method for JavaScript call XML HttpRequest;
Step 46, client the chat message display module chat message is represented to the user.
At this also can be that the chat message display module obtains chat message by attribute and the method for JavaScript call XML HttpRequest, and the step of going forward side by side is upgraded chat message in the chat message display module with the API of DOM.
The reciprocal process of client and server end chat message has only been described in the above-described embodiment, instant chat implementation method of the present invention can also be in the process that the user exchanges immediately by client, to the client push specific information, add information, advertising message etc. by server end as system information, user.These information might need to be pushed to all clients, and some may only need to be pushed to the client that is in a certain chatroom, describes for example below.
System information, need close as server, server end need comprise the XMLHttpRequest message of the prompting message of server closing to all client push, and after receiving by Ajax engine and applied logic module and resolve this XMLHttpRequest message by client, need close by chat message display module notice client server;
The user adds information, in that to have new user to add fashionable, server end need push the user to other users of the chatroom that the user adds and add information, and renewal user list, after receiving and resolve the XMLHttpRequest message of the information that comprises that the new user of prompting adds by client by Ajax engine and applied logic module, notify the user to have new user to add by the chat message display module, and upgrade the online tabulation of user;
Advertising message, server end need to all client push comprise advertisement XMLHttpRequest message, and after receiving by Ajax engine and applied logic module and resolve this XMLHttpRequest message by client, notify the user by the chat message display module; The present invention also can push different advertisements at the feature of chatroom, as at the client push sports goods advertisement that embeds the physical culture page, at the client push music album advertisement that embeds the musical form page etc.
The part message that only for example server end is pushed is illustrated above, certainly other forms of message can also be arranged, different information are distinguished by type of message, after Ajax engine and applied logic module receive and resolve this XMLHttpRequest message, different information is shown in the diverse location of chat message display module according to type of message.
The above is three kinds of preferred implementations of the present invention, below content is wherein further described in detail.
The chat message that server end needs to send to client is packaged into the XML form, and wherein encapsulation format can be following mode:
<root>
<msg?id=″1832″>
<type>0</type>
<nname〉Zhang San</nname 〉
<text>gl</text>
</msg>
...?...
</root>
The message of other types is similar substantially therewith, and difference is the different of the difference of type of message (Type) and encapsulated content, describes no longer one by one at this.
Simultaneously, after Ajax engine and applied logic module obtain XML message bag, analyzing XML message bag, and generation HTML (Hypertext Markup Language, HTML) and CSSCascading Style Sheet, CSS) data are upgraded local webpage by the chat message display module.
Functions such as system and method for the present invention can provide registration, nullifies, lands, calls by name, exchanges houses, shields a certain user, a certain user of screen unlocking because its handling process is similar substantially, only are that example is elaborated to call by name below, comprise the steps:
Step 51, the user utilizes the user end to server end to send the message of calling by name, and by Ajax engine and applied logic module this message of calling by name is encapsulated as the XML form, and utilizes XMLHttpRequest message to send to server end; Wherein this message of calling by name comprises information such as type of message, user ID, chatroom ID, the new pet name;
After step 52, server end are received this message of calling by name, call corresponding servlet according to type of message and handle, and be saved in database; Servlet is the small-sized java applet that server capability is expanded in a kind of special use;
Step 53, server end returns the result of XMLHttpRequest form to client, comprises that the client of calling by name to proposition returns result, and to other users broadcastings of same chatroom information of renaming.
As shield a certain user, and then in message, comprising the user's of needs shieldings ID, then the user's of conductively-closed speech will not be sent to user client to server end when this user sends chat message next time.
Simultaneously system and method for the present invention is also supported the function of polemicing, utilize the user end to server end to send and add the debate request message, the position that in this debate request message, comprises its adding, handling process with call by name etc. similar, its difference is the difference of parameter, keep user's position record information list simultaneously, utilize the literal of different fonts or different colours to be distinguished according to user's position.
Simultaneously, instant chat of the present invention realizes that the server end of system also can comprise a system status monitoring module, be used for adding up according to the data of database, as:
IP and respective session when logining according to the user count active user's number;
After process of user login, IP and respective session when logining according to the user count user communication custom and user type;
IP and respective session when logining according to the user count user's distribution situation.
Instant chat of the present invention realizes that the server end of system also can comprise a system management module, realize server startup, close, the functions such as maintenance of database.
Instant chat of the present invention realizes that the client of system also can be by the adjustment of client's realization to client location, size.
Under many circumstances, user's speech is a local convergence, and that is to say will merely be exactly in a certain period and others chats continuously; Other the time all be to hold boring wait-and-see attitude or simply do other thing and gone, but client is also stayed the there.If do not distinguish this situation but make no exception, can bring a kind of situation, be exactly a lot of traffic consumption on one's body useless person, especially when the registrant is a lot, want that people's speed of chatting goes not get on soon.So, should distinguish both of these case, allow and want that the people who chats upgrades quickerly, allow and do not want that the people who chats upgrades slowly, especially allow those people that do other thing for a long time go offline.
Among the present invention, solution to the problems described above comprises the steps:
Step 61, client are provided with a timer;
Step 62, timer then, Ajax engine and applied logic module send the request obtain chat message to server;
Step 63, timer are carried out time-out check after being set to wait for the longer time, return step 62.
In above-mentioned process, in case user's speech, then timer carries out time-out check after being set to wait for initial time, if the user does not make a speech in the given time always, then the user is set to go offline.
Simultaneously, when system and method for the present invention is communicated by letter with client data at server end, also can carry out encryption, guarantee the fail safe of data communication, prevent the damage of data and lose data.
Simultaneously, for assurance speed, the present invention is stored in latest data and frequently-used data in the server memory, and the memory queue storage rule is followed the principle of first-in first-out, the storage that exceeds the memory queue size in database, and regularly and database carry out data sync.
Client of the present invention can adopt iframe and CSS filter to build the three-dimensional effect window that floats;
Whether simultaneously, system and method for the present invention is supported the registered user, and the registered user is safeguarded an information table in database, comprises user name, password and the pet name etc., will be present in the database in case these information user registers, no matter roll off the production line always.For the visitor, only safeguard dynamic online information, the back information that rolls off the production line will be deleted.Simultaneously, carry out differentiated treatment at registered user and visitor.
Simultaneously, the present invention supports online tabulation of user and broadcasting simultaneously.But only when login, return all user's online information, if having the upper and lower line of user directly on former list basis, to make an amendment later, rather than all obtain all user lists at every turn.And advertisement and broadcasting can be classified according to user characteristics, and make static page, i.e. not in dynamic change, just can obtain the up-to-date page from server end during user's manual refreshing page after user's login.
The present invention utilizes the JavaScript technical support that chat record is saved as the htm form, and the chat scene of chatroom will get to the limit and preserve like this, comprise font, color etc.
When the present invention is switched the chatroom the user, withdraw from former chatroom earlier, login new chatroom again, revise this user's online information in the database, and the system message of broadcasting login and withdrawing from.
Simultaneously, method and system of the present invention can merge with the third party website, and the user is with after the user name login of third party website, and this user name directly passes in the system of the present invention.
The third party website is passed to a hiding html element at the webpage of being disposed with user name, as div, goes the parent webpage to obtain user name when the client that embeds loads then.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (19)

1. an instant chat is realized system, comprise the client and server end, described client is embedded in the webpage of browser, it is characterized in that, described client comprises family speech operational module, Ajax engine and applied logic module and chat message display module, wherein:
The described user operational module of making a speech is used to import chat message, and calls described Ajax engine and applied logic module by JavaScript;
Described Ajax engine and applied logic module, send to server end after being used for chat message utilized XMLHttpRequest message encapsulation, and be used for the XMLHttpRequest message that the reception server end returns, and extract the chat message in the XMLHttpRequest message that server end returns;
The chat message display module is used for the chat message of the XMLHttpRequest message that the display server end returns;
Described server end is used to receive and resolve the XMLHttpRequest message of Ajax engine and the transmission of applied logic module, and preservation chat message wherein, the chat message that also is used for preserving sends to the Ajax engine and the applied logic module of the client of dialogue by XMLHttpRequest message.
2. instant chat according to claim 1 is realized system, it is characterized in that, described server end also is used to utilize XMLHttpRequest message to send particular message to client, described Ajax engine and applied logic module also are used to receive and resolve the XMLHttpRequest message that comprises particular message, and described chat message display module also is used to show described particular message.
3. instant chat according to claim 2 is realized system, it is characterized in that, distinguishes by type of message between the different particular message, and described chat message display module is used for showing described particular message at correspondence position.
4. instant chat according to claim 1 is realized system, it is characterized in that described server end comprises a system status monitoring module, is used for adding up according to the data of database.
5. instant chat according to claim 1 is realized system, it is characterized in that server end comprises a system management module, be used to realize server startup, close, the maintenance of database.
6. an instant chat implementation method is characterized in that, comprises the steps:
Step S1, user utilize the client input chat message that is embedded into browsing device net page;
Step S2, client is packaged into the XML form with chat message, and utilizes XMLHttpRequest message to send to server end;
Step S3, server end is packaged into the XML form according to rule with new chat message, and utilizes XMLHttpRequest message to send to client;
Step S4, client represents new chat message to the user.
7. instant chat implementation method according to claim 6 is characterized in that, described chat message comprises speech user ID, chat object ID, chatroom ID and speech content.
8. instant chat implementation method according to claim 7 is characterized in that, described rule is specially:
Receive the chat message that upgrades involved client behind the chat message that client sends; Or
Indicate the chat message that upgrades corresponding client according to the user; Or
Regularly upgrade the chat message of client.
9. instant chat implementation method according to claim 8, it is characterized in that, described rule is to receive when upgrading the chat message of involved client behind the chat message that client sends, described step S3 is specially: server end is packaged into the XML form with the chat message of receiving, and utilizes XMLHttpRequest message that this chat message is broadcast to chat object ID clients corresponding.
10. instant chat implementation method according to claim 8 is characterized in that, described rule is that described step S3 specifically comprises when indicating the chat message that upgrades corresponding client according to the user:
Step S31, server end receive the XML form chat message update request that user side sends;
Step S32, server end is from database lookup and obtain the new chat message of corresponding client;
Step S33, server end utilize XMLHttpRequest message to return to corresponding client after the new chat message of corresponding client is packaged into the XML form.
11. instant chat implementation method according to claim 10, it is characterized in that, the maximum ID of chat message that described chat message update request comprises user ID, chatroom ID and obtained last time, among the described step S32 ', new chat message is the chat message of ID greater than the maximum ID of the chat message that obtained last time.
12. instant chat implementation method according to claim 8, it is characterized in that, when described rule is upgraded the chat message of client for timing, described step S3 is specially: server end utilizes the XMLHttpRequest information broadcast to send to client according to periodically the chat message that upgrades being packaged into the XML form.
13. according to the described instant chat implementation method of each claim of claim 6 to 11, it is characterized in that, among the step S4, client is obtained chat message by the attribute of JavaScript call XML HttpRequest, and upgrades chat message by the API that calls DOM.
14. according to the described instant chat implementation method of each claim of claim 6 to 11, it is characterized in that, also comprise:
Server end utilizes XMLHttpRequest message to send particular message to client;
Client receives and resolves the XMLHttpRequest message that comprises particular message;
Client shows described particular message.
15. instant chat implementation method according to claim 14 is characterized in that different particular message are distinguished by type of message, and is shown in ad-hoc location.
16. according to the described instant chat implementation method of each claim of claim 6 to 11, it is characterized in that, also comprise: the client scheduled time, server end did not upgrade the chat message of described client when not making a speech.
17., it is characterized in that the communication data between client and the server end is an enciphered data according to the described instant chat implementation method of each claim of claim 6 to 11.
18., it is characterized in that client is stored in the server memory with latest data of communicating by letter and frequently-used data between the server end according to the described instant chat implementation method of each claim of claim 6 to 11.
19. according to the described instant chat implementation method of each claim of claim 6 to 11, it is characterized in that, also comprise: the user utilizes XMLHttpRequest message to send the XML form and utilize the registration of type of message differentiation, the request of nullifying, land, shielding specific user's speech, add debate, switch the chatroom, call by name to server end by client, server end calls corresponding servlet according to type of message and handles, and returns the client process result by XMLHttpRequest message.
CNA2006101106390A 2006-08-04 2006-08-04 Instant chatting implementation system and method thereof Pending CN101119327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006101106390A CN101119327A (en) 2006-08-04 2006-08-04 Instant chatting implementation system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006101106390A CN101119327A (en) 2006-08-04 2006-08-04 Instant chatting implementation system and method thereof

Publications (1)

Publication Number Publication Date
CN101119327A true CN101119327A (en) 2008-02-06

Family

ID=39055266

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006101106390A Pending CN101119327A (en) 2006-08-04 2006-08-04 Instant chatting implementation system and method thereof

Country Status (1)

Country Link
CN (1) CN101119327A (en)

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888349A (en) * 2009-05-13 2010-11-17 上海即略网络信息科技有限公司 Interworking gateway of MSN and XMPP
CN101902411A (en) * 2009-06-01 2010-12-01 高维海 Real-time website system and method for combining website and real-time communication platform
WO2010139232A1 (en) * 2009-06-01 2010-12-09 Gao Weihai Instant website system and method for combining website and instant messaging platforms
CN101945055A (en) * 2009-07-09 2011-01-12 深圳市艾派应用系统有限公司 Instant communication system and instant communication method
CN102035893A (en) * 2010-12-23 2011-04-27 中国农业银行股份有限公司 Method and system for pushing data actively by server
WO2011088720A1 (en) * 2010-01-20 2011-07-28 腾讯科技(深圳)有限公司 Method and system for obtaining web chat logs
CN102291323A (en) * 2011-05-27 2011-12-21 苏州阔地网络科技有限公司 Module information interaction method and system in community network
CN102368744A (en) * 2011-05-09 2012-03-07 苏州阔地网络科技有限公司 Group information interaction method and system based on community network
CN102420781A (en) * 2011-12-05 2012-04-18 苏州汉清投资管理有限公司 Online chatting system
CN102546457A (en) * 2010-12-27 2012-07-04 北大方正集团有限公司 Character message processing method and character message processor
CN102571868A (en) * 2010-12-31 2012-07-11 北京新媒传信科技有限公司 Instant messaging method, device and system
CN102655481A (en) * 2011-03-04 2012-09-05 腾讯科技(深圳)有限公司 Webpape-based instant messaging chat content looking-up method and system
CN102946345A (en) * 2012-11-26 2013-02-27 上海量明科技发展有限公司 Method, browser client and system for outputting instant messaging interface structure
CN102957702A (en) * 2012-11-07 2013-03-06 北京小米科技有限责任公司 Data requesting method and client
CN102981761A (en) * 2012-11-13 2013-03-20 广义天下文化传播(北京)有限公司 Trigger-type interactive method used for mobile terminal application
WO2014019497A1 (en) * 2012-07-30 2014-02-06 华为终端有限公司 Real time communication method, terminal device, real time communication server and system
CN103812916A (en) * 2012-11-15 2014-05-21 航天信息股份有限公司 Method and device for transmitting data between different terminals
CN103929477A (en) * 2014-03-31 2014-07-16 国网山东省电力公司 Intersystem non-coupling integration simulation method and system based on Http
CN104767671A (en) * 2014-01-08 2015-07-08 深圳中兴网信科技有限公司 Display method and device of instant communication contents
CN105245437A (en) * 2015-09-30 2016-01-13 慈溪爱立示信息科技有限公司 Method for recording and preserving communication messages of webpage version instant communication platform
CN106293355A (en) * 2015-05-11 2017-01-04 腾讯科技(深圳)有限公司 The method and apparatus that instant messaging window shows
CN107493514A (en) * 2017-08-11 2017-12-19 北京小米移动软件有限公司 Direct broadcasting room data processing method, device and computer-readable storage medium
CN108702319A (en) * 2016-02-23 2018-10-23 林亨哲 Messaging hold-up interception method
CN109274585A (en) * 2018-10-12 2019-01-25 山东鲁能软件技术有限公司 Instant message desktop system and method under B/S mode based on AJAX
CN110908739A (en) * 2019-11-28 2020-03-24 广东汉鼎蜂助手网络技术有限公司 Method, device and equipment for realizing data docking with third-party Launcher
CN111600789A (en) * 2020-05-11 2020-08-28 百度在线网络技术(北京)有限公司 Instant messaging method, system, device, electronic equipment and storage medium
CN113784161A (en) * 2021-09-09 2021-12-10 广州方硅信息技术有限公司 User mark transmission method and device, equipment and medium thereof
CN114125535A (en) * 2021-11-11 2022-03-01 广州方硅信息技术有限公司 Live broadcast speaking method, system, device, equipment and storage medium
CN118101615A (en) * 2024-04-29 2024-05-28 浪潮云信息技术股份公司 Real-time chat method, device, equipment and storage medium

Cited By (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888349A (en) * 2009-05-13 2010-11-17 上海即略网络信息科技有限公司 Interworking gateway of MSN and XMPP
CN101902411A (en) * 2009-06-01 2010-12-01 高维海 Real-time website system and method for combining website and real-time communication platform
WO2010139232A1 (en) * 2009-06-01 2010-12-09 Gao Weihai Instant website system and method for combining website and instant messaging platforms
CN101694660B (en) * 2009-06-01 2016-03-30 高维海 The method that instantaneous website system and website are combined with immediate communication platform
CN101945055A (en) * 2009-07-09 2011-01-12 深圳市艾派应用系统有限公司 Instant communication system and instant communication method
CN102130844B (en) * 2010-01-20 2014-11-05 腾讯科技(深圳)有限公司 Method and system for acquiring Web chat logs
WO2011088720A1 (en) * 2010-01-20 2011-07-28 腾讯科技(深圳)有限公司 Method and system for obtaining web chat logs
CN102035893A (en) * 2010-12-23 2011-04-27 中国农业银行股份有限公司 Method and system for pushing data actively by server
CN102546457B (en) * 2010-12-27 2015-02-04 北大方正集团有限公司 Character message processing method and character message processor
CN102546457A (en) * 2010-12-27 2012-07-04 北大方正集团有限公司 Character message processing method and character message processor
CN102571868B (en) * 2010-12-31 2015-01-14 北京新媒传信科技有限公司 Instant messaging method, device and system
CN102571868A (en) * 2010-12-31 2012-07-11 北京新媒传信科技有限公司 Instant messaging method, device and system
CN102655481B (en) * 2011-03-04 2016-04-13 腾讯科技(深圳)有限公司 A kind of instant messaging chat content inspection method based on webpage and system
CN102655481A (en) * 2011-03-04 2012-09-05 腾讯科技(深圳)有限公司 Webpape-based instant messaging chat content looking-up method and system
CN102368744A (en) * 2011-05-09 2012-03-07 苏州阔地网络科技有限公司 Group information interaction method and system based on community network
CN102291323A (en) * 2011-05-27 2011-12-21 苏州阔地网络科技有限公司 Module information interaction method and system in community network
CN102420781A (en) * 2011-12-05 2012-04-18 苏州汉清投资管理有限公司 Online chatting system
US9854008B2 (en) 2012-07-30 2017-12-26 Huawei Device (Dongguan) Co., Ltd. Real time communication method, terminal device, real time communication server and real time communication system
CN103580986B (en) * 2012-07-30 2016-12-21 华为终端有限公司 A kind of real-time communication method, terminal unit, real-time communication server and system
CN103580986A (en) * 2012-07-30 2014-02-12 华为终端有限公司 Real-time communication method, terminal equipment, real-time communication server and system
WO2014019497A1 (en) * 2012-07-30 2014-02-06 华为终端有限公司 Real time communication method, terminal device, real time communication server and system
CN102957702A (en) * 2012-11-07 2013-03-06 北京小米科技有限责任公司 Data requesting method and client
CN102981761A (en) * 2012-11-13 2013-03-20 广义天下文化传播(北京)有限公司 Trigger-type interactive method used for mobile terminal application
CN103812916A (en) * 2012-11-15 2014-05-21 航天信息股份有限公司 Method and device for transmitting data between different terminals
CN102946345B (en) * 2012-11-26 2017-05-24 上海量明科技发展有限公司 Method, browser client and system for outputting instant messaging interface structure
CN102946345A (en) * 2012-11-26 2013-02-27 上海量明科技发展有限公司 Method, browser client and system for outputting instant messaging interface structure
CN104767671A (en) * 2014-01-08 2015-07-08 深圳中兴网信科技有限公司 Display method and device of instant communication contents
CN103929477B (en) * 2014-03-31 2017-09-19 国网山东省电力公司 Without coupling integration analogy method and system between system based on Http agreements
CN103929477A (en) * 2014-03-31 2014-07-16 国网山东省电力公司 Intersystem non-coupling integration simulation method and system based on Http
CN106293355B (en) * 2015-05-11 2020-09-01 腾讯科技(深圳)有限公司 Method and device for displaying instant messaging window
CN106293355A (en) * 2015-05-11 2017-01-04 腾讯科技(深圳)有限公司 The method and apparatus that instant messaging window shows
US10671976B2 (en) 2015-05-11 2020-06-02 Tencent Technology (Shenzhen) Company Limited Instant messaging window display method and apparatus, and computer readable medium
CN105245437A (en) * 2015-09-30 2016-01-13 慈溪爱立示信息科技有限公司 Method for recording and preserving communication messages of webpage version instant communication platform
CN105245437B (en) * 2015-09-30 2019-02-05 浙江爱立示信息科技有限公司 A kind of webpage version immediate communication platform communication message record storing method
CN108702319A (en) * 2016-02-23 2018-10-23 林亨哲 Messaging hold-up interception method
CN107493514A (en) * 2017-08-11 2017-12-19 北京小米移动软件有限公司 Direct broadcasting room data processing method, device and computer-readable storage medium
CN109274585A (en) * 2018-10-12 2019-01-25 山东鲁能软件技术有限公司 Instant message desktop system and method under B/S mode based on AJAX
CN110908739A (en) * 2019-11-28 2020-03-24 广东汉鼎蜂助手网络技术有限公司 Method, device and equipment for realizing data docking with third-party Launcher
CN110908739B (en) * 2019-11-28 2020-12-01 广东汉鼎蜂助手网络技术有限公司 Method, device and equipment for realizing data docking with third-party Launcher
CN111600789A (en) * 2020-05-11 2020-08-28 百度在线网络技术(北京)有限公司 Instant messaging method, system, device, electronic equipment and storage medium
CN113784161A (en) * 2021-09-09 2021-12-10 广州方硅信息技术有限公司 User mark transmission method and device, equipment and medium thereof
CN113784161B (en) * 2021-09-09 2023-11-24 广州方硅信息技术有限公司 User mark transmission method and device, equipment and medium thereof
CN114125535A (en) * 2021-11-11 2022-03-01 广州方硅信息技术有限公司 Live broadcast speaking method, system, device, equipment and storage medium
CN114125535B (en) * 2021-11-11 2024-05-28 广州方硅信息技术有限公司 Live speaking method, system, device, equipment and storage medium
CN118101615A (en) * 2024-04-29 2024-05-28 浪潮云信息技术股份公司 Real-time chat method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101119327A (en) Instant chatting implementation system and method thereof
KR101320216B1 (en) Customizable content for distribution in social networks
US20050216342A1 (en) Frame-based network advertising and exchange therefor
US20070157227A1 (en) Advertising services architecture
WO2009149466A1 (en) System and method for sharing content in an instant messaging application
CN103379019B (en) Information push method and device in microblogging, system
US20080059584A1 (en) Method and apparatus for sharing resource addresses
HK1040582A1 (en) Interactive media system.
WO2009077621A1 (en) System and method for processing messages
CN103873945A (en) System and method for socializing with object in video program
CN103747368A (en) System and method for embedding network instant communication in video program
CN107426146A (en) User sends the system and method for displaying present banner after present in live application
CN101778122A (en) Method, device and system for implementing message service
CN1968120B (en) Method and system for group information management
CN102810110A (en) Method and system for acquiring web text data
KR101403783B1 (en) Virtual space providing system for distinct step of application execution
US20140229534A1 (en) Method and system for accessing micro-blog album and micro-blog client
CN103942703A (en) System and method for providing network advertisements through electronic card
Hosio et al. Leveraging social networking services to encourage interaction in public spaces
JP5028447B2 (en) Server apparatus and information processing method for transmitting message by ID
CN102387026B (en) Management method and device for user data in system based on universal relation link model
CN103684995B (en) Traffic performance displaying, pocket transmission news methods of exhibiting and system in network colony
JP2008186202A (en) Push type information transmission system for providing internet information in push type or push-pull type
JP2009075912A (en) Information sharing system
CN103401776B (en) Method for pushing information by utilizing router

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20080206

C20 Patent right or utility model deemed to be abandoned or is abandoned