interface EventsMessagingBridgeOptions
Since 0.1.0

Options for the EventsMessagingBridge factory.

Properties

eventTypes: readonly string[]

The event types to forward to the messaging broker.

optional
token: string

The capability token for the messaging broker to use.

optional
topicMapping: (eventType: string) => string

Function to map event types to broker topics.

optional
errorHandler: (
error: unknown,
eventType: string
) => void

Custom error handler for publish failures.

Usage

import { type EventsMessagingBridgeOptions } from "messaging-plugin/src/index.ts";