Interface BootstrapOptions

Options for bootstrapping the worker

Hierarchy

  • BootstrapOptions

Properties

Methods

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

  • Function to call when a shard is created for additional setup

    Parameters

    • shard: WebSocketShard

    Returns Awaitable<void>

Generated using TypeDoc