Supercharge Your Innovation With Domain-Expert AI Agents!

Method for reconnecting H5 page to server, terminal and readable storage medium

A server and page technology, applied in the Internet field, to achieve the effect of ensuring connection persistence and effective transmission

Pending Publication Date: 2021-12-03
武汉美和易思数字科技有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a method, a terminal and a readable storage medium for reconnecting an H5 page to a server. Technical issues of efficient transfer of data between servers

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
  • Method for reconnecting H5 page to server, terminal and readable storage medium
  • Method for reconnecting H5 page to server, terminal and readable storage medium
  • Method for reconnecting H5 page to server, terminal and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment H5

[0067] The embodiment of the present invention provides an embodiment of the method for reconnecting to the server on the H5 page. It should be noted that although the logic sequence is shown in the flow chart, in some cases, all the steps can be executed in a different order than here. steps shown or described. Specifically, the method for reconnecting to the server on the H5 page of this embodiment includes:

[0068] Step S10, establishing a persistent connection with the server based on the preset protocol of the H5 page, and sending a request message to the server based on the persistent connection;

[0069] The method for reconnecting the H5 page to the server in this embodiment is used to connect the H5 page to the server to realize data transmission with the server. Wherein, the connection between the H5 page and the server is preferably a persistent connection, and the persistent connection with the server is established through a preset protocol, and the preset proto...

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 for reconnecting an H5 page to a server, a terminal and a readable storage medium, and the method comprises the steps: building a long connection with the server based on a preset protocol of the H5 page, and transmitting a request message to the server based on the long connection; judging whether the long connection is in a connection abnormal state according to whether a heartbeat message returned by the server based on the request message is successfully received; if the terminal is in the connection abnormal state, counting an abnormal continuous frequency, and executing a step of establishing a long connection with the server based on the preset protocol until the abnormal continuous frequency is greater than a preset frequency. According to the method and the device, a reconnection mechanism for carrying out preset times in the abnormal state is set, and when the connection between the H5 page and the server is abnormal due to various factors, the long connection between the H5 page and the server is reestablished, so that the connection durability is ensured, and the effective transmission of data between the H5 page and the server is realized.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method for reconnecting an H5 page to a server, a terminal and a readable storage medium. Background technique [0002] With the rapid development of Internet technology, H5 (HyperText Markup Language 5, HTML5, Hypertext Markup Language 5) has been promoted and applied to various fields, and is widely used in mobile devices to support multimedia. [0003] At present, the H5 page of the client accesses the server through the network, and maintains a connection with the server to realize data transmission and communication; however, due to various abnormal conditions between the client and the server, it is prone to abnormal data transmission with the server. For example, if the client network is not smooth, the message cannot be sent, or the server is disconnected from the server due to factors such as firewall interception, network disconnection, and power failure, resulti...

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): H04L29/08
CPCH04L67/145
Inventor 海克洪
Owner 武汉美和易思数字科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More