interface WorkersBrokerOptions
Since 0.2.0

Options for WorkersBroker.

Properties

readonly
optional
logger: LoggerSource

Resolves the logger at the moment a dispatch path needs it.

A thunk, not an ILogger, for the reason WorkersQueueOptions.logger documents: the plugin context resolves logger lazily through a Proxy that answers undefined until a logger is registered, so capturing the value during register() would silence a logger registered afterwards.

readonly
optional
replyInbox: ReplyInboxBinding

Enables request/respond. Omitted, both throw CloudflareUnsupportedError naming the arm to add.

Usage

import { type WorkersBrokerOptions } from "cloudflare-plugin/src/index.ts";