/
docs
/
packages
/
ws
/
main
/
WorkerShardingStrategyOptions%3AInterface
Search...
K
ws
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
main
main
Classes
SimpleContextFetchingStrategy
SimpleIdentifyThrottler
SimpleShardingStrategy
WebSocketManager
WebSocketShard
WorkerBootstrapper
WorkerContextFetchingStrategy
WorkerShardingStrategy
Functions
getInitialSendRateLimitState
managerToFetchingStrategyOptions
Enums
CloseCodes
CompressionMethod
Encoding
WebSocketShardDestroyRecovery
WebSocketShardEvents
WebSocketShardStatus
WorkerReceivePayloadOp
WorkerSendPayloadOp
Interfaces
BootstrapOptions
CreateWebSocketManagerOptions
FetchingStrategyOptions
IContextFetchingStrategy
IdentifyState
IIdentifyThrottler
IShardingStrategy
ManagerShardEventsMap
OptionalWebSocketManagerOptions
RequiredWebSocketManagerOptions
SendRateLimitState
SessionInfo
ShardRange
WebSocketManagerOptions
WebSocketShardDestroyOptions
WebSocketShardEventsMap
WorkerData
WorkerShardingStrategyOptions
Types
WorkerReceivePayload
WorkerSendPayload
Variables
CompressionParameterMap
DefaultDeviceProperty
DefaultWebSocketManagerOptions
ImportantGatewayOpcodes
version
WorkerShardingStrategyOptions
export interface
WorkerShardingStrategyOptions
export interface
WorkerShardingStrategyOptions
Summary
Options for a
WorkerShardingStrategy
Properties
shardsPerWorker
:
number
| 'all'
Dictates how many shards should be spawned per worker thread.
workerPath?
:
string
Path to the worker file to use. The worker requires quite a bit of setup, it is recommended you leverage the
WorkerBootstrapper
class.
Methods
unknownPayloadHandler(payload)
:
unknown
Handles a payload not recognized by the handler.
Parameters
Name
Type
Optional
Description
payload
any
No
None