ShardHeart
Documentation / @discordeno/gateway / ShardHeart
Interface: ShardHeart
Defined in: types.ts:88
Properties
acknowledged
acknowledged:
boolean
Defined in: types.ts:90
Whether or not the heartbeat was acknowledged by Discord in time.
interval
interval:
number
Defined in: types.ts:92
Interval between heartbeats requested by Discord.
intervalId?
optionalintervalId?:Timeout
Defined in: types.ts:94
Id of the interval, which is used for sending the heartbeats.
lastAck?
optionallastAck?:number
Defined in: types.ts:96
Unix (in milliseconds) timestamp when the last heartbeat ACK was received from Discord.
lastBeat?
optionallastBeat?:number
Defined in: types.ts:98
Unix timestamp (in milliseconds) when the last heartbeat was sent.
rtt?
optionalrtt?:number
Defined in: types.ts:103
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.
timeoutId?
optionaltimeoutId?:Timeout
Defined in: types.ts:105
Id of the timeout which is used for sending the first heartbeat to Discord since it's "special".