Strategy used to spawn threads in worker_threads
Implements
IShardingStrategyConstructs a new instance of the
WorkerShardingStrategy
className | Type | Optional | Description |
---|---|---|---|
manager | WebSocketManager | No | None |
options | WorkerShardingStrategyOptions | No | None |
Initializes all the shards
Destroys all the shards
Name | Type | Optional | Description |
---|---|---|---|
options | Omit<WebSocketShardDestroyOptions, 'recover'> | Yes | None |
Fetches the status of all the shards
Sends a payload to a shard
Name | Type | Optional | Description |
---|---|---|---|
shardId | number | No | None |
data | GatewaySendPayload | No | None |
Spawns all the shards
Name | Type | Optional | Description |
---|---|---|---|
shardIds | number[] | No | None |