ShardHeart
@discordeno/gateway • Docs
Documentation / @discordeno/gateway / ShardHeart
Interface: ShardHeart
Properties
acknowledged
acknowledged:
boolean
Whether or not the heartbeat was acknowledged by Discord in time.
Defined in
interval
interval:
number
Interval between heartbeats requested by Discord.
Defined in
intervalId?
optional
intervalId:Timeout
Id of the interval, which is used for sending the heartbeats.
Defined in
lastAck?
optional
lastAck:number
Unix (in milliseconds) timestamp when the last heartbeat ACK was received from Discord.
Defined in
lastBeat?
optional
lastBeat:number
Unix timestamp (in milliseconds) when the last heartbeat was sent.
Defined in
rtt?
optional
rtt:number
Round trip time (in milliseconds) from Shard to Discord and back. Calculated using the heartbeat system. Note: this value is undefined until the first heartbeat to Discord has happened.
Defined in
timeoutId?
optional
timeoutId:Timeout
Id of the timeout which is used for sending the first heartbeat to Discord since it's "special".