Archived
0
0
Fork 0

fix(gateway): fix identify not sending (try 2)

This commit is contained in:
Daryl Ronningen 2021-07-16 20:13:25 -07:00
parent 8099709a21
commit 3788d1ef08
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

View file

@ -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);
} }
} }