mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
add doc link
This commit is contained in:
@@ -15,7 +15,7 @@ export function heartbeat(shardId: number, interval: number) {
|
||||
shard.heartbeat.lastSentAt = Date.now();
|
||||
shard.heartbeat.interval = interval;
|
||||
|
||||
// The first heartbeat should not wait for the entire interval to pass
|
||||
// The first heartbeat should not wait for the entire interval to pass: https://discord.com/developers/docs/topics/gateway#heartbeating
|
||||
shard.heartbeat.timeoutId = setTimeout(
|
||||
() => sendHeartbeat(shardId),
|
||||
Math.floor(shard.heartbeat.interval * Math.random()),
|
||||
|
||||
Reference in New Issue
Block a user