class WorkerShardingStrategy
implements
IShardingStrategyexport declare class WorkerShardingStrategy implements IShardingStrategy
Strategy used to spawn threads in worker_threads
Constructors
manager: WebSocketManageroptions: WorkerShardingStrategyOptions)
constructor(manager: WebSocketManager
options: WorkerShardingStrategyOptions
Constructs a new instance of the WorkerShardingStrategy
class
connectPromise<void> () :
destroyoptions?: Omit<WebSocketShardDestroyOptions, 'recover'>) : Promise<void> (
options?: Omit<WebSocketShardDestroyOptions, 'recover'>
sendshardId: numberdata: GatewaySendPayload) : void (
shardId: number
data: GatewaySendPayload
spawnshardIds: number[]) : Promise<void> (
shardIds: number[]