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
destroyoptions?: Omit<WebSocketShardDestroyOptions, 'recover'>) : Promise<void> (
options?: Omit<WebSocketShardDestroyOptions, 'recover'>
Destroys all the shards
fetchStatusPromise<Collection<number, import("../../ws/WebSocketShard.js").WebSocketShardStatus>> () :
Fetches the status of all the shards
sendshardId: numberpayload: GatewaySendPayload) : Promise<void> (
shardId: number
payload: GatewaySendPayload
Sends a payload to a shard