Skip to content

connectInQueue

connectInQueue(gateway, shardId, gate, options?): Promise<boolean>

Defined in: packages/sharding/src/index.ts:177

Connects one shard inside the IDENTIFY queue: takes a slot, connects, and gives the slot back once the IDENTIFY is sent, or, with waitForReady (sequential startup), once the shard is READY. The slot is always released, also when connecting fails.

Gateway

number

IdentifySlotGate

() => boolean

Checked after the slot is granted: true skips connecting (a stale start).

number

number

boolean

Promise<boolean>

Whether the shard became READY in time (true without waitForReady).