Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Instant messaging method based on comet of network platform under B/S (Browser/Server) architecture

A technology of network platform and communication method, applied in the direction of data exchange network, digital transmission system, electrical components, etc., can solve the problems of slow page response or refresh, low operating efficiency, unstable operation, etc., to reduce load, respond quickly, The effect of speeding up the access speed

Inactive Publication Date: 2015-02-11
STATE GRID CORP OF CHINA +1
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Because this technology requires continuous access to database information, it causes a great waste of bandwidth and network congestion, which makes the system run inefficient and unstable. When multiple users access, there will be slow page response or refresh. bad experience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer, the following will describe in detail in conjunction with specific embodiments.

[0024] In this embodiment, the communication module developed by comet technology is adopted. Comet is also called reverse Ajax or server-side push technology (server-side push); by directly pushing data from the web server to the browser without waiting for the browser to request data, Its specific method steps are as follows:

[0025] Step 1: Set up a cache area in the Web server to save the chat record information sent by the client within a time period T after the Web server is started;

[0026] The chat record information includes parameters of sending time, sender, receiver, and whether to receive. The size of the buffer area can be set, so only the data of a time period T is saved, and the redundant data is saved in the database.

[0027] Step 2: The br...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a comet-based instant messaging method of a network platform under B / S (Browser / Server) architecture. The comet-based instant messaging method of the network platform under the B / S architecture is realized through the following steps that 1) a cache region is arranged on a Web server, chat record information transmitted by a client within a time period T after the server is started at current is saved, and the chat record information which exceeds the capacity of the cache region is saved in a database of the Web server; 2) a browser of an online client sends a request to the Web server; 3) basic connection for instant messaging is established; 4) the attribute of response is set to enable the Web server to be capable of repetitively making responses, so that as long as one certain client A transmits information to another client B, the Web server firstly saves the information in the cache region set in step 1 and detects whether a receiving end is online or not, if so, matched contents are read from the cache region and are transmitted to the client B, and the client B can receive the information in real time. The comet-based instant messaging method of the network platform under the B / S architecture has the advantages of high stability and efficiency, quick response, smooth operation, high generality and communication way diversity.

Description

technical field [0001] The invention relates to an instant messaging method, in particular to a comet-based instant messaging method on a network platform under a B / S architecture. Background technique [0002] Nowadays, the network platform under the B / S structure is widely used. Among them, the online communication function of the network training platform is used more and more in classroom applications. At present, the instant messaging technology under the B / S structure is not mature enough , Usually most of them are implemented by timer and Ajax technology. Ajax will go to the server to check whether there is any change after a period of time (usually using JavaScript's setTimeout function), so as to perform incremental updates. However, it becomes a problem to query for a long time, because performance and immediacy have caused a serious inverse relationship. If the interval is too short, continuous requests will overwhelm the server; if the interval is too long, it ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/58H04L29/08
Inventor 朱卫民王勋梁昭杨秀娥
Owner STATE GRID CORP OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products