This commit is contained in:
yanghang
2025-07-18 15:50:32 +08:00
parent 911fe2f4ee
commit 39e3965bf5
4 changed files with 67 additions and 35 deletions
+1
View File
@@ -35,6 +35,7 @@ export default class WebSocketUtil {
*/
init(flag = false) {
if(flag) this.reconnectCount = 0
this.isClose = false; // 手动关闭
// 创建WebSocket连接
this.socketTask = uni.connectSocket({
url: this.url,