mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix
This commit is contained in:
parent
d748d6e400
commit
fb8e0595c2
@ -71,7 +71,7 @@ export class OB11ActiveWebSocketAdapter implements IOB11NetworkAdapter {
|
|||||||
private registerHeartBeat() {
|
private registerHeartBeat() {
|
||||||
if (this.connection) {
|
if (this.connection) {
|
||||||
this.heartbeatTimer = setInterval(() => {
|
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.connection.send(JSON.stringify(new OB11HeartbeatEvent(this.coreContext, this.heartbeatInterval, this.coreContext.selfInfo.online, true)));
|
||||||
}
|
}
|
||||||
}, this.heartbeatInterval);
|
}, this.heartbeatInterval);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user