From a5fe03b3baaf02623ea8c2c901b22905aa82cbef Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Thu, 15 Apr 2021 12:14:27 +0200 Subject: [PATCH] add doc link --- src/ws/heartbeat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ws/heartbeat.ts b/src/ws/heartbeat.ts index 79b010242..89dbbc77a 100644 --- a/src/ws/heartbeat.ts +++ b/src/ws/heartbeat.ts @@ -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()),