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

A method and system for two-way communication between a web browser and a server

A web browser, two-way communication technology, applied in transmission systems, electrical components, etc., can solve problems such as incompatibility of communication methods with different web browsers

Active Publication Date: 2017-12-12
TCL CORPORATION
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of the deficiencies in the prior art above, the object of the present invention is to provide a method and system for two-way communication between a web browser and a server, aiming at solving the problem that the existing communication methods cannot be compatible with different web browsers

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
  • A method and system for two-way communication between a web browser and a server
  • A method and system for two-way communication between a web browser and a server
  • A method and system for two-way communication between a web browser and a server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention provides a method and system for two-way communication between a web browser and a server. In order to make the purpose, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0026] see figure 1 , figure 1 A method for two-way communication between a web browser and a server of the present invention, comprising the steps of:

[0027] S101. Call the general API to perform initialization;

[0028] S102. Identify the current operating environment, determine whether the web browser supports html5, and use the Websocket communication method to perform two-way communication with the server if so.

[0029] Among them, the Websocket communication method is an asynchronous communication method between the next-genera...

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 method and system for two-way communication between a web browser and a server, wherein the method includes the steps of: A. calling a general API to initialize; B. identifying the current operating environment to determine whether the web browser supports html5, When it is time, use the Websocket communication method to communicate with the server in two directions. The present invention judges whether the web browser supports html5, Flash plug-in, iframe by identifying the current operating environment, and then intelligently selects and uses Websocket communication mode, Flashsocket communication mode, iframe long connection communication mode or Ajax long polling communication mode, so that The communication method of the present invention is compatible with various web browsers on the market.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a method and system for two-way communication between a web browser and a server. Background technique [0002] The web browser has the functions of retrieval query, file service, offline browsing of the heat meter management machine, etc., while the server has the functions of static information distribution and dynamic information distribution, etc. There are many two-way communication methods between the web browser and the server, for example Long polling, long connection, Flashsocket and Websocket and other communication methods, but due to the different types and versions of client web browsers, these communication methods cannot be compatible with different web browsers on the market. Therefore, the prior art still needs to be improved and developed. Contents of the invention [0003] In view of the above-mentioned deficiencies in the prior art, the object of the presen...

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/06H04L29/08
Inventor 陈龙
Owner TCL CORPORATION