Interface IShardingStrategy

Strategies responsible for spawning, initializing connections, destroying shards, and relaying events

Hierarchy

  • IShardingStrategy

Implemented by

Methods

  • Initializes all the shards

    Returns Awaitable<void>

  • Sends a payload to a shard

    Parameters

    • shardId: number
    • payload: GatewaySendPayload

    Returns Awaitable<void>

  • Spawns all the shards

    Parameters

    • shardIds: number[]

    Returns Awaitable<void>

Generated using TypeDoc