interface DurableObjectBackplaneOptions
Since 0.2.0

Properties

readonly
origin: string

This instance's identity, stamped on every published frame.

Must be unique per replica; runtime.uuid() is what the plugin passes.

readonly
binding: string

The Durable Object binding name, used only in error messages.

readonly
topic: string

The object name every replica shares, from idFromName.

Two applications sharing one namespace must use different topics, or each receives the other's frames.

readonly
optional
logger: () => ILogger | undefined

Logger accessor for reporting a transport failure.

A thunk, never a captured value: the kernel answers ctx.logger as undefined until a logger is registered, and a logger may be registered imperatively after this plugin's register() runs. Capturing the value would silence every report for that application.

Usage

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