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

A websocket broken line reconnection method and a websocket broken line reconnection device

A disconnection reconnection and reconnection technology, applied in the field of education system, can solve the problems of websocket disconnection and reconnection

Inactive Publication Date: 2019-05-21
SHENZHEN DIANMAO TECH CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above deficiencies in the prior art, the object of the present invention is to provide a websocket disconnection reconnection method and device, aiming at solving the problem of websocket disconnection reconnection

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 websocket broken line reconnection method and a websocket broken line reconnection device
  • A websocket broken line reconnection method and a websocket broken line reconnection device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The present invention provides a websocket disconnection reconnection method and device. In order to make the purpose, technical solution and effect of the present invention more clear and definite, 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.

[0029] see figure 1 , which is a flow chart of the steps of the websocket disconnection reconnection method described in the present invention, the present invention discloses a websocket disconnection reconnection method, which includes the steps of:

[0030] S1. Monitor the connection event of websocket;

[0031] S2. When the websocket connection fails, count the number of websocket connection failures;

[0032] S3. When the number of websocket connection failures reaches the threshold, reconnect the websocket.

[0033] Further, the websocket disconnecti...

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 websocket disconnection reconnection method and device, and the method comprises the steps: A, monitoring a websocket connection event; B, when websocket connection fails, counting the number of websocket connection failures; C, when the number of websocket connection failures reaches a threshold value, reconnecting the websocket; Through the scheme of the invention, thedisconnection reconnection of the websocket is realized, the dependency injection is added in the reconnection of the websocket, and the control inversion is completed in the reconnection process, sothat the vuex can obtain the previous program state information after the disconnection reconnection, and the state of the program is continuously managed.

Description

technical field [0001] The invention relates to the field of education systems, in particular to a websocket disconnection reconnection method and device. Background technique [0002] The current technology stack of the project is vue+websocket. After disconnection and reconnection, websocket has a disconnection reconnection mechanism, but Vue’s state management tool vuex does not have a disconnection reconnection mechanism. After disconnection and reconnection, the state of the program is chaotic. , resulting in an error. [0003] Therefore, the prior art still needs to be improved and developed. Contents of the invention [0004] In view of the above deficiencies in the prior art, the object of the present invention is to provide a websocket disconnection reconnection method and device, aiming at solving the problem of websocket disconnection reconnection. [0005] Technical scheme of the present invention is as follows: [0006] A websocket disconnection reconnectio...

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/08H04L12/26
Inventor 李天驰孙悦
Owner SHENZHEN DIANMAO TECH CO LTD
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