/
docs
/
packages
/
ws
/
main
/
BootstrapOptions%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
FetchingStrategyOptions
IContextFetchingStrategy
IdentifyState
IIdentifyThrottler
IShardingStrategy
OptionalWebSocketManagerOptions
RequiredWebSocketManagerOptions
SendRateLimitState
SessionInfo
ShardRange
WebSocketShardDestroyOptions
WorkerData
WorkerShardingStrategyOptions
Types
ManagerShardEventsMap
WebSocketManagerOptions
WebSocketShardEventsMap
WorkerReceivePayload
WorkerSendPayload
Variables
DefaultDeviceProperty
DefaultWebSocketManagerOptions
ImportantGatewayOpcodes
version
BootstrapOptions
export interface
BootstrapOptions
export interface
BootstrapOptions
Summary
Options for bootstrapping the worker
Properties
forwardEvents?
:
WebSocketShardEvents
[]
Shard events to just arbitrarily forward to the parent thread for the manager to emit Note: By default, this will include ALL events you most likely want to handle dispatch within the worker itself
Methods
shardCallback(shard)
:
Awaitable
<void>
Function to call when a shard is created for additional setup
Name
Type
Optional
Description
shard
WebSocketShard
No
None