mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
fix: set lastSentAt on each heartbeat
This commit is contained in:
@@ -49,6 +49,7 @@ export async function heartbeat(gateway: GatewayManager, shardId: number, interv
|
||||
if (currentShard.ws.readyState !== WebSocket.OPEN) return;
|
||||
|
||||
currentShard.heartbeat.acknowledged = false;
|
||||
currentShard.heartbeat.lastSentAt = Date.now();
|
||||
|
||||
currentShard.ws.send(
|
||||
JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user