class SimpleShardingStrategy
implements
IShardingStrategydeclare class SimpleShardingStrategy implements IShardingStrategySimple strategy that just spawns shards in the current process
Constructors
constructor(manager: WebSocketManager)
manager: WebSocketManager
Constructs a new instance of the SimpleShardingStrategy class
destroy(options?: Omit<WebSocketShardDestroyOptions, 'recover'>) : Promise<void>
options?: Omit<WebSocketShardDestroyOptions, 'recover'>
Destroys all the shards
fetchStatus() : Promise<Collection<number, WebSocketShardStatus>>
Fetches the status of all the shards
send(shardId: numberpayload: GatewaySendPayload) : Promise<void>
shardId: number
payload: GatewaySendPayload
Sends a payload to a shard