class WorkerShardingStrategy

export declare class WorkerShardingStrategy implements IShardingStrategy

Strategy used to spawn threads in worker_threads

Constructors

constructor()

Constructs a new instance of the WorkerShardingStrategy class

connect() : Promise<void>

destroy(
options?: Omit<WebSocketShardDestroyOptions, 'recover'>
) : Promise<void>

send() : void

spawn(
shardIds: number[]
) : Promise<void>