Class SimpleShardingStrategy

Simple strategy that just spawns shards in the current process

Hierarchy

  • SimpleShardingStrategy

Implements

Constructors

Properties

Methods

Constructors

Properties

manager: any
shards: any

Methods

  • Initializes all the shards

    Returns Promise<void>

  • Sends a payload to a shard

    Parameters

    • shardId: number
    • payload: GatewaySendPayload

    Returns Promise<void>

  • Spawns all the shards

    Parameters

    • shardIds: number[]

    Returns Promise<void>

Generated using TypeDoc