fix: ws心跳问题
This commit is contained in:
1 parent
eb9d6240d7
commit
84d46da67e
2 files changed
+2
-2
No files matched your search
@@ -69,7 +69,7 @@ class OB11WebsocketServer extends WebsocketServerBase {
|
||||
}
|
||||
const { heartInterval } = ob11Config;
|
||||
const wsClientInterval = setInterval(() => {
|
||||
postWsEvent(new OB11HeartbeatEvent(!!selfInfo.online, true, heartInterval));
|
||||
wsReply(wsClient, new OB11HeartbeatEvent(!!selfInfo.online, true, heartInterval));
|
||||
}, heartInterval); // 心跳包
|
||||
wsClient.on('close', () => {
|
||||
logError('event上报ws客户端已断开');
|
||||
|
||||
Reference in new issue
Block a user