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> () :
destroyoptions?: Omit<WebSocketShardDestroyOptions, 'recover'>) : Promise<void> (
options?: Omit<WebSocketShardDestroyOptions, 'recover'>
sendshardId: numberpayload: GatewaySendPayload) : Promise<void> (
shardId: number
payload: GatewaySendPayload
spawnshardIds: number[]) : Promise<void> (
shardIds: number[]