From fb8e0595c2fa3948ecbef7f03262e48951647d99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 11 Aug 2024 23:37:31 +0800 Subject: [PATCH] fix --- src/onebot/network/active-websocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onebot/network/active-websocket.ts b/src/onebot/network/active-websocket.ts index 26c702c6..54379854 100644 --- a/src/onebot/network/active-websocket.ts +++ b/src/onebot/network/active-websocket.ts @@ -71,7 +71,7 @@ export class OB11ActiveWebSocketAdapter implements IOB11NetworkAdapter { private registerHeartBeat() { if (this.connection) { this.heartbeatTimer = setInterval(() => { - if (this.connection && this.connection.readyState === NodeWebSocket.OPEN) { + if (this.connection && this.connection.readyState === WebSocket.OPEN) { this.connection.send(JSON.stringify(new OB11HeartbeatEvent(this.coreContext, this.heartbeatInterval, this.coreContext.selfInfo.online, true))); } }, this.heartbeatInterval);