Skip to main content

ShardHeart

@discordeno/gatewayDocs


Documentation / @discordeno/gateway / ShardHeart

Interface: ShardHeart

Properties

acknowledged

acknowledged: boolean

Whether or not the heartbeat was acknowledged by Discord in time.

Defined in

gateway/src/types.ts:106


interval

interval: number

Interval between heartbeats requested by Discord.

Defined in

gateway/src/types.ts:108


intervalId?

optional intervalId: Timeout

Id of the interval, which is used for sending the heartbeats.

Defined in

gateway/src/types.ts:110


lastAck?

optional lastAck: number

Unix (in milliseconds) timestamp when the last heartbeat ACK was received from Discord.

Defined in

gateway/src/types.ts:112


lastBeat?

optional lastBeat: number

Unix timestamp (in milliseconds) when the last heartbeat was sent.

Defined in

gateway/src/types.ts:114


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

gateway/src/types.ts:119


timeoutId?

optional timeoutId: Timeout

Id of the timeout which is used for sending the first heartbeat to Discord since it's "special".

Defined in

gateway/src/types.ts:121