fix(gateway): fix identify not sending (try 2)
This commit is contained in:
parent
8099709a21
commit
3788d1ef08
1 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ export class GatewayClient {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
this._heartbeatIntervalTimer = setInterval(() => this._sendHeartbeat(), this._heartbeatInterval * 1000);
|
this._sendHeartbeat();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -93,6 +93,6 @@ export class GatewayClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
private _sendHeartbeat(): void {
|
private _sendHeartbeat(): void {
|
||||||
this.send({ op: 1, d: this._sequence });
|
this._heartbeatIntervalTimer = setInterval(() => this.send({ op: 1, d: this._sequence }), this._heartbeatInterval * 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue