Unlock instant, AI-driven research and patent intelligence for your innovation.

Web instant communication method based on browser

A communication method and browser technology, applied in the direction of digital transmission systems, electrical components, transmission systems, etc., can solve the problems of heavy server burden and information cannot be provided in real time, and achieve the effect of reducing burden, reducing pressure, and improving performance

Inactive Publication Date: 2014-09-24
广东华邦云计算股份有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Using this method requires the browser to initiate requests regularly. If the timing is too long, the information cannot be provided to the browser client in real time. If the timing is too short, the browser will frequently initiate requests, which will cause a great impact on the server. Pressure, and many requests are empty requests, because the user may not have changed information at this time, which will cause a heavy burden on the server, and sometimes thousands of useless links will be sent in order to obtain an information immediately

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Web instant communication method based on browser
  • Web instant communication method based on browser

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the purpose of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0022] Such as figure 1 As shown, the browser-based web instant messaging method flowchart of the present invention comprises the following steps:

[0023] S1. The user logs in to the browser client;

[0024] S2. The browser client initiates an http request to the server;

[0025] S3, the server obtains the http connection initiated by the thread processing browser client from the thread pool, and the server judges whether there is new information in its buffer, if so, then execute step S7; if not, then execute step S4;

[0026] S4, the server uses NIO technology to suspend the connection, and releases the thread to the thread p...

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 relates to a web instant communication method based on browser, which comprises steps as follows: a user logs on a browser client, initiates an http request to a server, the server acquires an http connection initiated by a thread processing browser from a thread pool, judges whether the buffer area has new information, and if so, transmits the new information to the browser client; if not, the server suspends the connection by using NIO (network interface object) technology, and releases the thread to the thread pool; the server judges whether the connection is time-out, and if so, acquires a thread from the thread pool and transmits a heartbeat signal to the browser client to reestablish connection; else, the server judges whether new information exists; and if so, the server transmits the new information to the browser client, else, continues monitoring. By using the invention, the browser client can acquire information in real time, and the connection can be suspended when the connection is idle, thereby reducing unnecessary loads of the server and enhancing the performance of the server.

Description

technical field [0001] The present invention relates to the technical field of computer network communication, and more specifically, relates to a web instant messaging method based on a browser. Background technique [0002] In recent years, the browser-based real-time communication system has been accepted by the majority of users due to its convenience, simplicity, and unrestricted features. and other aspects cannot be synchronized with users in real time. It can be seen that solving the real-time synchronization of information between the browser terminal and the server is one of the indicators for improving the user experience of the browser terminal product. [0003] Due to the browser's own reasons for Web instant messaging, the browser can only obtain the returned content by sending an http link. Since the browser itself uses this "pull" method to achieve interaction with the background, so to implement web instant messaging based on the browser, there are common p...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08H04L12/58
Inventor 林绿德
Owner 广东华邦云计算股份有限公司