Skip to content

WorkerClientOptions

Signature

export interface WorkerClientOptions extends BaseClientOptions

Properties

postMessage?: (body: unknown) => Awaitable<unknown>;

Sends worker IPC messages. For cache requests, reject only when the request was not delivered; accepted operations report completion or failure through CACHE_RESULT.

sendPayloadToParent?: boolean;

can have perfomance issues in big bots if the client sends every event, specially in startup (false by default)

Methods