SimpleShardingStrategy
Simple strategy that just spawns shards in the current process
Implements
IShardingStrategyconstructor(manager)
Constructs a new instance of the
SimpleShardingStrategy class| Name | Type | Optional | Description |
|---|---|---|---|
| manager | WebSocketManager | No | None |
Initializes all the shards
Destroys all the shards
| Name | Type | Optional | Description |
|---|---|---|---|
| options | Omit<WebSocketShardDestroyOptions, 'recover'> | Yes | None |
Sends a payload to a shard
| Name | Type | Optional | Description |
|---|---|---|---|
| shardId | number | No | None |
| payload | GatewaySendPayload | No | None |
Spawns all the shards
| Name | Type | Optional | Description |
|---|---|---|---|
| shardIds | number[] | No | None |