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

Communication method of front end page and rear end server

A technology of back-end server and front-end page, which is applied in the field of communication, can solve problems such as push, unable to provide data on the front-end page, and unable to realize WebSocket two-way communication function, so as to improve transmission efficiency and reduce useless data.

Inactive Publication Date: 2014-07-02
北京花房科技有限公司
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, not all browsers support the HTML5 standard at present, especially some browsers of the IE series cannot implement the two-way communication function similar to Web Socket, and cannot provide data push services to the front-end pages through the back-end server

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
  • Communication method of front end page and rear end server
  • Communication method of front end page and rear end server
  • Communication method of front end page and rear end server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] Currently HTML5 Web Sockets supports full-duplex communication between pages and remote hosts using the Web Socket protocol. It introduces the Web Socket socket and defines a full-duplex communication channel to operate on the Web through a single socket. HTML5 Web Sockets efficiently provides web connectivity with minimal overhead. This greatly reduces unnecessary network traffic compared to the old polling or long polling methods that often need to push real-time data to the client or even simulate a full-duplex connection by maintaining two HTTP connections with delay. In the C / S (client / server) system, the channel provided by the Scoket component can easily send the new data to the client when the data changes. When chatting, you can receive the reply information from the other party without refreshing. But it is more difficult to push data to the browser in the B / S (browser / server) system.

[0027] In the prior art, a solution is provided, which is to use Flash...

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 provides a communication method of a front end page and a rear end server. The method includes the steps that first, when a user opens the front end page, the rear end server sends a connecting assembly, a packaging assembly and a data exchange assembly to the front end page of the user, and the connecting assembly is used for making the front end page and the rear end serve establish TCP long connection; second, when the user sends a message packaged according to a pre-determined packaging format to the rear end server through the packaging assembly on the front end page, the rear end server judges a mark value of a preset mark in the packaging, and if the mark value is a first mark value, the message is unpackaged, data in the message are extracted and forwarded to front end pages of other users in the same chatting area as the front end page. With the method, the rear end server can push data to the front end page through long connection, an autonomously-designed communication protocol is used, useless data in data transmission are reduced, and transmission efficiency is improved.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a communication method between a front-end page and a back-end server. Background technique [0002] With the rapid development of the Internet, users can query various multimedia information through browsers, and even interact with online data. The effectiveness of exchanging data between service programs based on Web front-end pages and back-end services is becoming more and more important. Traditional Internet applications often use ajax (asynchronous JavaScript and XML, referring to a web development technology for creating interactive web applications) to obtain back-end server data, but the implementation of ajax on each browser is different. The front-end page can request data from the back-end of the server through ajax, but the request is usually restricted by the browser. For example, the browser restricts sending up to 6 requests to the http server under the sam...

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 Applications(China)
IPC IPC(8): H04L29/06H04L29/08
Inventor 刘涵牛建新
Owner 北京花房科技有限公司
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