/
docs
/
packages
/
ws
/
2.0.0
/
BootstrapOptions%3AInterface
Search...
K
ws
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
2.0.0
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
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
Parameters
Name
Type
Optional
Description
shard
WebSocketShard
No
None