From 0a0b1c308b1551fe3e45871a78f73fe296167182 Mon Sep 17 00:00:00 2001
From: Yuan <294065614@qq.com>
Date: Thu, 12 Dec 2024 16:23:23 +0800
Subject: [PATCH 01/23] 1
---
sdk/src/AppController.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/src/AppController.js b/sdk/src/AppController.js
index c2e67f6..bae6f23 100644
--- a/sdk/src/AppController.js
+++ b/sdk/src/AppController.js
@@ -233,7 +233,7 @@ class AppController {
this.recordHeartbeat(objData.time);
break;
case 'closeRsp':
- if ((this.reconnection.reconnecting && this.reconnection.trigger === 'socketCloseEvent') || !this.reconnection.reconnecting) {
+ if ((this.reconnection.reconnecting && this.reconnection.trigger === 'socketCloseEvent')) {
this.onClose(objData.state, 'socketCloseEvent');
}
--
Gitee
From 3162816bd8a78aff61bb012d95b9d1211d0aa3ff Mon Sep 17 00:00:00 2001
From: Yuan <294065614@qq.com>
Date: Thu, 12 Dec 2024 19:44:32 +0800
Subject: [PATCH 02/23] 1
---
sdk/src/AppController.js | 2 +-
sdk/src/CPHCloudApp.js | 2 +-
sdk/src/StartScreenPrint.js | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sdk/src/AppController.js b/sdk/src/AppController.js
index bae6f23..c2e67f6 100644
--- a/sdk/src/AppController.js
+++ b/sdk/src/AppController.js
@@ -233,7 +233,7 @@ class AppController {
this.recordHeartbeat(objData.time);
break;
case 'closeRsp':
- if ((this.reconnection.reconnecting && this.reconnection.trigger === 'socketCloseEvent')) {
+ if ((this.reconnection.reconnecting && this.reconnection.trigger === 'socketCloseEvent') || !this.reconnection.reconnecting) {
this.onClose(objData.state, 'socketCloseEvent');
}
diff --git a/sdk/src/CPHCloudApp.js b/sdk/src/CPHCloudApp.js
index fbf3214..f309b68 100644
--- a/sdk/src/CPHCloudApp.js
+++ b/sdk/src/CPHCloudApp.js
@@ -18,7 +18,7 @@ import Logger from './Logger';
import Util from './Util';
import NoDebugger from './NoDebugger';
-const DEFAULT_RECONNECT_TIMES = 15;
+const DEFAULT_RECONNECT_TIMES = 3;
const INIT_VIRTUAL_DEVICE_STATE = 2048;
/**
diff --git a/sdk/src/StartScreenPrint.js b/sdk/src/StartScreenPrint.js
index 5d66753..305ded6 100644
--- a/sdk/src/StartScreenPrint.js
+++ b/sdk/src/StartScreenPrint.js
@@ -20,7 +20,7 @@ import Util from './Util';
import NoDebugger from './NoDebugger';
-const DEFAULT_RECONNECT_TIMES = 15;
+const DEFAULT_RECONNECT_TIMES = 3;
// eslint-disable-next-line no-unused-vars
const INIT_VIRTUAL_DEVICE_STATE = 2048;
--
Gitee
From 60648113faf35dbe3362a417a087fb7e337788da Mon Sep 17 00:00:00 2001
From: Yuan <294065614@qq.com>
Date: Thu, 12 Dec 2024 20:29:20 +0800
Subject: [PATCH 03/23] 1
---
sdk/src/AppController.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/src/AppController.js b/sdk/src/AppController.js
index c2e67f6..023cc35 100644
--- a/sdk/src/AppController.js
+++ b/sdk/src/AppController.js
@@ -1299,7 +1299,7 @@ class AppController {
recoverAfterWorkerDead(trigger) {
this.socketWorker && this.socketWorker.terminate();
this.createSocket();
- this.onClose(WEBSOCKET_READY_STATE.CLOSED, trigger);
+ this.networkInfo.heartBeatSendTimes = [];
}
checkAndRecoverSocket(trigger) {
--
Gitee
From 26032132f1099497c7c534d9329b53ee2c21da1e Mon Sep 17 00:00:00 2001
From: Yuan <294065614@qq.com>
Date: Fri, 13 Dec 2024 11:45:14 +0800
Subject: [PATCH 04/23] 1
---
sdk/demo/demo.html | 4 +++-
sdk/src/config/protocolConfig.js | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/sdk/demo/demo.html b/sdk/demo/demo.html
index 98eac1d..c75a266 100644
--- a/sdk/demo/demo.html
+++ b/sdk/demo/demo.html
@@ -451,7 +451,9 @@ Copyright 2022 Huawei Cloud Computing Technology Co., Ltd.
+
-
+