class SimpleShardingStrategy
implements
IShardingStrategyexport declare class SimpleShardingStrategy implements IShardingStrategy
Simple strategy that just spawns shards in the current process
Constructors
manager: WebSocketManager)
constructor(manager: WebSocketManager
Constructs a new instance of the SimpleShardingStrategy
class
connectPromise<void> () :
Initializes all the shards
destroyoptions?: Omit<WebSocketShardDestroyOptions, 'recover'>) : Promise<void> (
options?: Omit<WebSocketShardDestroyOptions, 'recover'>
Destroys all the shards
sendshardId: numberpayload: GatewaySendPayload) : Promise<void> (
shardId: number
payload: GatewaySendPayload
Sends a payload to a shard
spawnshardIds: number[]) : Promise<void> (
shardIds: number[]
Spawns all the shards