CN103312751A - Instant messaging method based on browser - Google Patents

Instant messaging method based on browser Download PDF

Info

Publication number
CN103312751A
CN103312751A CN2012100656327A CN201210065632A CN103312751A CN 103312751 A CN103312751 A CN 103312751A CN 2012100656327 A CN2012100656327 A CN 2012100656327A CN 201210065632 A CN201210065632 A CN 201210065632A CN 103312751 A CN103312751 A CN 103312751A
Authority
CN
China
Prior art keywords
browser
server
client
message
method based
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
CN2012100656327A
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.)
NANJING XINYULI CULTURE SPREAD CO Ltd
Original Assignee
NANJING XINYULI CULTURE SPREAD CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NANJING XINYULI CULTURE SPREAD CO Ltd filed Critical NANJING XINYULI CULTURE SPREAD CO Ltd
Priority to CN2012100656327A priority Critical patent/CN103312751A/en
Publication of CN103312751A publication Critical patent/CN103312751A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an instant messaging method based on a browser. The method comprises the following steps: a, utilizing a memory database to set a user online state server, and recording an online user list in real time; b, utilizing a memory database to set a message queue (MQ), and storing messages to be sent; c, utilizing a client browser to continuously request the messages from a server side through asynchronous data transmission and process a feedback result. By utilizing the instant messaging method based on the browser, provided by the invention, the two memory databases are arranged to respectively process the online user list and a message queue list, the client browser continuously requests the messages from the server side through asynchronous data transmission and processes the feedback result, the server state does not need to be obtained in real time, accordingly, the cross-platform instant communication is achieved, easy expanding is realized, and the expenditure of the server is small.

Description

A kind of instant communicating method based on browser
Technical field
The present invention relates to a kind of instant communicating method, relate in particular to a kind of instant communicating method based on browser, comprise single and many people's instant character communication, real-time phonetic communication and instant video.
Background technology
Instant messaging (IM) refers to the immediately business of sending and receiving internet message etc.Instant messaging since 1998 emerge, developing rapidly in recent years particularly, the function of instant messaging becomes increasingly abundant, the integrated gradually several functions such as Email, blog, music, TV, game and search.Instant messaging no longer is a simple chat tool, and it has developed into the synthesization information platform that integrates interchange, information, amusement, search, ecommerce, office cooperation and corporate client service etc.
Realize that at present instant messaging has following several scheme:
1.socket connect: the socket technology be widely used for desktop end the instant messaging field (such as the QQ client, bitcoms such as skype, but on browser, can't carry out.
2.websocket link: the websocket technology results under the HTML5 standard, supports at present the browser of HTML5 technology that IE9 is arranged, FIREFOX, CHROME, the browsers such as SAFARI.But account for the IE6 of domestic browser share maximum, the browser of 7,8 versions can't be supported technique.
3.flash technology: the flash technology generally is used on the browser, but the flash technical stability is not high, and relies on third-party plug-in unit, and domestic consumer can't directly use.
4. short poll: the frequent access server of client (browser) is to obtain relative " quasi real time " message, and advantage is browser version is not required; Shortcoming is that client need to be set up the frequent access to server, connects expense large.
5. long connection: also be the server push technology. namely do not need server is asked, server just can be with the technology of message push to browser client.Defective is to need to rely on specific web server, in the situation that large visit capacity can't be carried out effective Clustering.
Therefore existing various instant messagings or depend on specific platform perhaps connect expense large, affect efficient.Therefore be necessary the instant communicating method based on browser that provides new.
Summary of the invention
Technical problem to be solved by this invention provides a kind of instant communicating method based on browser, can guarantee that the server expense is little, the high and platform independence of extensibility.
The present invention solves the problems of the technologies described above the technical scheme that adopts to provide a kind of instant communicating method based on browser, wherein, comprises the steps: a) to utilize internal storage data lab setting user online status server, the online user list of real time record; B) utilize internal storage data lab setting message queue MQ, preserve message to be sent; C) client browser by simultaneous asynchronous data transmissions to the continuous request message of server end and process return results.
The above-mentioned instant communicating method based on browser, wherein, whether each listed client regularly request server has the message that sends to this client with inquiry; Behind the server parses request message, process first the information that need in message queue MQ, delete, among the query messages formation MQ whether this user's new information is arranged again, return to client if just have by the protocol encapsulation data, return the client-requested successful information; As not having message with regard to this thread of dormancy N second, N is positive integer, waits for whether N has this user's new information again among the query messages formation MQ after second, the maximum times that has reached system configuration when the dormancy number of times is just jumped out this circulation, returns the sky data.
The above-mentioned instant communicating method based on browser, wherein, described message queue MQ is provided with the expired time monitoring, if not request of client within expired time, think that then client rolls off the production line, the message in the deletion message queue is also upgraded the user online status server.
The above-mentioned instant communicating method based on browser, wherein, described server end is distributed to different application servers by load equalizer with client browser requests, and application server is saved in the content data base cluster with the content of instant message.
The present invention contrasts prior art following beneficial effect: the instant communicating method based on browser provided by the invention, by being set, two memory databases process respectively online user's tabulation and message queue tabulation, client browser by simultaneous asynchronous data transmissions to the continuous request message of server end and process return results, do not need the Real-time Obtaining server state, thereby realize cross-platform instant messaging, be easy to expansion and guarantee that the server expense is little.
Description of drawings
Fig. 1 is the instantaneous communication system configuration diagram that the present invention is based on browser;
Fig. 2 is the instant messaging principle flow chart that the present invention is based on browser;
Fig. 3 is the instant communicating method schematic flow sheet that the present invention is based on browser.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
Fig. 1 is the instantaneous communication system configuration diagram that the present invention is based on browser.
See also Fig. 1, the below describes the instant communicating method that the present invention is based on browser in detail, and the server that the present invention uses comprises:
The user online status server: instant message only sends to the online user, so the user online status server is preserved online user profile;
Application server: the server of process user browse request;
Content data base cluster: the content data base cluster of persistence user instant message;
Agreement: abstract data storage and the formal definition that sends;
Www: client browser;
Load equalizer: balance user asks the Request dispatcher on the different server.
The present invention is based on the instant communicating method idiographic flow of browser as shown in Figures 2 and 3, step is as follows:
Step S101: utilize internal storage data lab setting user online status server, the online user list of real time record; For balanced load, server end can be distributed to different application servers with client browser requests by load equalizer, and application server can be with the content persistence of instant message to the content data base cluster.
Step S102: utilize internal storage data lab setting message queue MQ, preserve message to be sent; Whether each listed client regularly request server has the message that sends to this client with inquiry; Behind the server parses request message, process first the information that need in message queue MQ, delete, among the query messages formation MQ whether this user's new information is arranged again, return to client if just have by the protocol encapsulation data, return the client-requested successful information; As not having message with regard to this thread of dormancy N second, N is positive integer, waits for whether N has this user's new information again among the query messages formation MQ after second, the maximum times that has reached system configuration when the dormancy number of times is just jumped out this circulation, returns the sky data.
Step S103: client browser by simultaneous asynchronous data transmissions to the continuous request message of server end and process return results; Described message queue MQ is provided with the expired time monitoring, if not request of client within expired time thinks that then client rolls off the production line, the message in the deletion message queue is also upgraded the user online status server.
In sum, instant communicating method based on browser provided by the invention, by being set, two memory databases process respectively online user's tabulation and message queue tabulation, client browser by simultaneous asynchronous data transmissions to the continuous request message of server end and process return results, do not need the Real-time Obtaining server state, thereby realize cross-platform instant messaging, be easy to expansion and guarantee that the server expense is little.
Although the present invention discloses as above with preferred embodiment; so it is not to limit the present invention, any those skilled in the art, without departing from the spirit and scope of the present invention; when can doing a little modification and perfect, so protection scope of the present invention is when with being as the criterion that claims were defined.

Claims (4)

1. the instant communicating method based on browser is characterized in that, comprises the steps:
A) utilize internal storage data lab setting user online status server, the online user list of real time record;
B) utilize internal storage data lab setting message queue MQ, preserve message to be sent;
C) client browser by simultaneous asynchronous data transmissions to the continuous request message of server end and process return results.
2. the instant communicating method based on browser as claimed in claim 1 is characterized in that, whether each listed client regularly request server has the message that sends to this client with inquiry; Behind the server parses request message, process first the information that need in message queue MQ, delete, among the query messages formation MQ whether this user's new information is arranged again, return to client if just have by the protocol encapsulation data, return the client-requested successful information; As not having message with regard to this thread of dormancy N second, N is positive integer, waits for whether N has this user's new information again among the query messages formation MQ after second, the maximum times that has reached system configuration when the dormancy number of times is just jumped out this circulation, returns the sky data.
3. the instant communicating method based on browser as claimed in claim 2, it is characterized in that, described message queue MQ is provided with the expired time monitoring, if not request of client within expired time, think that then client rolls off the production line, the message in the deletion message queue is also upgraded the user online status server.
4. the instant communicating method based on browser as claimed in claim 1 or 2, it is characterized in that, described server end is distributed to different application servers by load equalizer with client browser requests, and application server is saved in the content data base cluster with the content of instant message.
CN2012100656327A 2012-03-14 2012-03-14 Instant messaging method based on browser Pending CN103312751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100656327A CN103312751A (en) 2012-03-14 2012-03-14 Instant messaging method based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100656327A CN103312751A (en) 2012-03-14 2012-03-14 Instant messaging method based on browser

Publications (1)

Publication Number Publication Date
CN103312751A true CN103312751A (en) 2013-09-18

Family

ID=49137534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100656327A Pending CN103312751A (en) 2012-03-14 2012-03-14 Instant messaging method based on browser

Country Status (1)

Country Link
CN (1) CN103312751A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580298A (en) * 2013-10-17 2015-04-29 北大方正集团有限公司 File uploading processing method and device
CN105897790A (en) * 2014-11-19 2016-08-24 吴沉立 Reverse data interaction method based on web
CN105933183A (en) * 2016-06-14 2016-09-07 烽火通信科技股份有限公司 Flow control optimization method based on POTN
CN106330994A (en) * 2015-06-18 2017-01-11 天脉聚源(北京)科技有限公司 User message publishing method and system
CN106648930A (en) * 2016-12-08 2017-05-10 北京五八信息技术有限公司 Method and device for achieving information interaction of instant messaging development packages
CN106790717A (en) * 2017-03-15 2017-05-31 福建中金在线信息科技有限公司 A kind of webpage means of communication and device
CN107070772A (en) * 2016-02-29 2017-08-18 艾威梯科技(北京)有限公司 The based reminding method of mission bit stream in a kind of collaborative work based on instant messaging
CN107145535A (en) * 2017-04-19 2017-09-08 畅捷通信息技术股份有限公司 Instant communicating method and device and server
CN107634992A (en) * 2017-09-05 2018-01-26 成都知道创宇信息技术有限公司 A kind of method for carrying out auto-destruct resource using websocket linking status
CN109286560A (en) * 2018-11-19 2019-01-29 北京达佳互联信息技术有限公司 A kind of method and device obtaining instant communication information
CN113132487A (en) * 2021-04-21 2021-07-16 深圳市乐唯科技开发有限公司 Simplified distributed long-connection data transmission method and system
CN113364858A (en) * 2021-06-03 2021-09-07 中国工商银行股份有限公司 File uploading method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040205134A1 (en) * 2003-02-14 2004-10-14 Digate Charles J. System and method for immediate and delayed real-time communication activities using availability data from and communications through an external instant messaging system
CN101043388A (en) * 2007-03-27 2007-09-26 杭州华为三康技术有限公司 Method, equipment and system for detecting whether web access user terminal is on line
CN101179518A (en) * 2006-12-19 2008-05-14 腾讯科技(深圳)有限公司 Method and system for realizing instant communication using browsers
CN101247371A (en) * 2008-03-17 2008-08-20 北京亿企通信息技术有限公司 Method and system for only displaying on-line users in instant communication
CN101299731A (en) * 2008-05-09 2008-11-05 国网信息通信有限公司 Instant communication method and apparatus based on Web

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040205134A1 (en) * 2003-02-14 2004-10-14 Digate Charles J. System and method for immediate and delayed real-time communication activities using availability data from and communications through an external instant messaging system
CN101179518A (en) * 2006-12-19 2008-05-14 腾讯科技(深圳)有限公司 Method and system for realizing instant communication using browsers
CN101043388A (en) * 2007-03-27 2007-09-26 杭州华为三康技术有限公司 Method, equipment and system for detecting whether web access user terminal is on line
CN101247371A (en) * 2008-03-17 2008-08-20 北京亿企通信息技术有限公司 Method and system for only displaying on-line users in instant communication
CN101299731A (en) * 2008-05-09 2008-11-05 国网信息通信有限公司 Instant communication method and apparatus based on Web

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580298B (en) * 2013-10-17 2018-05-08 北大方正集团有限公司 File upload process method and device
CN104580298A (en) * 2013-10-17 2015-04-29 北大方正集团有限公司 File uploading processing method and device
CN105897790A (en) * 2014-11-19 2016-08-24 吴沉立 Reverse data interaction method based on web
CN106330994A (en) * 2015-06-18 2017-01-11 天脉聚源(北京)科技有限公司 User message publishing method and system
CN107070772B (en) * 2016-02-29 2020-06-09 飞救医疗科技(北京)有限公司 Method for reminding task information in cooperative work based on instant messaging
CN107070772A (en) * 2016-02-29 2017-08-18 艾威梯科技(北京)有限公司 The based reminding method of mission bit stream in a kind of collaborative work based on instant messaging
CN105933183A (en) * 2016-06-14 2016-09-07 烽火通信科技股份有限公司 Flow control optimization method based on POTN
CN105933183B (en) * 2016-06-14 2019-03-08 烽火通信科技股份有限公司 Flow control optimization method based on POTN
CN106648930A (en) * 2016-12-08 2017-05-10 北京五八信息技术有限公司 Method and device for achieving information interaction of instant messaging development packages
CN106648930B (en) * 2016-12-08 2020-09-11 北京五八信息技术有限公司 Method and device for realizing information interaction of instant messaging development kit
CN106790717A (en) * 2017-03-15 2017-05-31 福建中金在线信息科技有限公司 A kind of webpage means of communication and device
CN107145535A (en) * 2017-04-19 2017-09-08 畅捷通信息技术股份有限公司 Instant communicating method and device and server
CN107634992A (en) * 2017-09-05 2018-01-26 成都知道创宇信息技术有限公司 A kind of method for carrying out auto-destruct resource using websocket linking status
CN109286560A (en) * 2018-11-19 2019-01-29 北京达佳互联信息技术有限公司 A kind of method and device obtaining instant communication information
CN109286560B (en) * 2018-11-19 2021-03-19 北京达佳互联信息技术有限公司 Method and device for acquiring instant messaging message
CN113132487A (en) * 2021-04-21 2021-07-16 深圳市乐唯科技开发有限公司 Simplified distributed long-connection data transmission method and system
CN113364858A (en) * 2021-06-03 2021-09-07 中国工商银行股份有限公司 File uploading method and device

Similar Documents

Publication Publication Date Title
CN103312751A (en) Instant messaging method based on browser
US10701012B2 (en) Method, apparatus and system for customer service information forwarding
CN103095724B (en) The method that the multiple interest packet compression of a kind of content center network sends and processes
CN102737065B (en) Method and device for acquiring data
CN102710798B (en) Browser expansion service based on real-time Communication for Power provides system and method
CN104378436A (en) Information push system and method based on server push
JP2014523568A (en) Efficient conditioning
CN102752388A (en) Browser-based interactive system, browser-based interactive method, browser and cloud server
CN109889567B (en) Implementation method of Internet of things platform supporting mass equipment access
CN102185801A (en) Information processing method in instant messaging and instant messaging tool
CN104022940A (en) Information processing method, device and system based on instant messaging (IM)
CN103761102B (en) A kind of uniform data service platform and its implementation
CN101969463A (en) Method for realizing whiteboard full-screen synchronization on web page
US20140108508A1 (en) Cloud subscription download method and system, and computer storage medium
CN109151056B (en) Method and system for pushing messages based on Canal
WO2016173185A1 (en) Information pushing method and apparatus
CN100563197C (en) A kind of image sharing system and method
CN101977209A (en) Method for realizing page-turning synchronization on web page
CN102724327A (en) System and method for providing real-time web browser service for browser
CN102938788A (en) Processing method and device of events
CN103780681A (en) High real-time Web application system and data real-time pushing method thereof
WO2014015787A1 (en) Method, server, and client for pushing and displaying splash screen
CN103873518A (en) Method for multiple terminals to synchronously obtain enhanced contact list, system and web server
WO2015172497A1 (en) Message pushing and acquisition methods and devices, and computer readable storage medium
US20150256502A1 (en) Method and system for processing social network information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Nanjing Xinyuli Culture Spread Co., Ltd.

Document name: Decision of Rejection

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130918