Project

General

Profile

Feature #2857

web综合监控websocket重连优化

Added by zhenyu yu almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
03/01/2023
Due date:
03/02/2023
% Done:

100%

Estimated time:
Defect version:

Description

websocket重连功能整理,完善优化重连逻辑。

优化功能点:
1.触发重连时,websocket重连限制由60s一次最多10次,改为30s一次且不限连接次数。

2.后台服务异常,触发onclose()、onerror()事件时,重新建立连接。

3.前端添加心跳机制,每60s通过websocket向后台发送请求(此功能需要java后台配合支持);
在心跳机制基础上,当网络异常或断开时,可通过向后台发送请求触发websocket的onclose()事件,尝试重新连接。

History

#1

Updated by zhenyu yu almost 2 years ago

  • Due date set to 03/02/2023
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF