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