Skip to main content

ShardSocketCloseCodes

@discordeno/gateway


Documentation / @discordeno/gateway / ShardSocketCloseCodes

Enumeration: ShardSocketCloseCodes

Defined in: gateway/src/types.ts:153

Enumeration Members

ReIdentifying

ReIdentifying: 3066

Defined in: gateway/src/types.ts:168

Shard is re-identifying therefore the old connection needs to be closed.


Resharded

Resharded: 3065

Defined in: gateway/src/types.ts:166

Special close code reserved for Discordeno's zero-downtime resharding system.


ResumeClosingOldConnection

ResumeClosingOldConnection: 3024

Defined in: gateway/src/types.ts:157

A resume has been requested and therefore the old connection needs to be closed.


Shutdown

Shutdown: 3000

Defined in: gateway/src/types.ts:155

A regular Shard shutdown.


TestingFinished

TestingFinished: 3064

Defined in: gateway/src/types.ts:164

Discordeno's gateway tests hae been finished, therefore the Shard can be turned off.


ZombiedConnection

ZombiedConnection: 3010

Defined in: gateway/src/types.ts:162

Did not receive a heartbeat ACK in time. Closing the shard and creating a new session.