From 9c7ea96035fd68dc1cb4106cbdb02e40bb64bac4 Mon Sep 17 00:00:00 2001 From: wuyanchen <307378529@qq.com> Date: Sun, 28 Dec 2025 17:29:03 +0800 Subject: [PATCH] =?UTF-8?q?=C2=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/crazystudio/script/net/WebNet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/crazystudio/script/net/WebNet.ts b/assets/crazystudio/script/net/WebNet.ts index c74ba09..4678cb3 100644 --- a/assets/crazystudio/script/net/WebNet.ts +++ b/assets/crazystudio/script/net/WebNet.ts @@ -19,7 +19,7 @@ export class WebNet { private url: string private reconnectInterval: number = -1 private reconnectTimer: number | null = null - private cachedMessages: ArrayBuffer[] = [] + private cachedMessages: ArrayBufferLike[] = [] public receiveCallback: (data: ArrayBuffer) => void = () => { } // 接收数据的回调函数 public connectCallback: () => void = () => { } // 连接成功的回调函数 public enableHeartBeat: boolean = true // 是否启用心跳机制