Interface SubscribeOptions<Msg, Opts>

Options for .

interface SubscribeOptions {
    signal?: AbortSignal;
    topic?: string;
    validator?: MessageValidator<Msg, Opts>;
}

Type Parameters

  • Msg

  • Opts = object

Hierarchy

Properties

signal?: AbortSignal

An optional AbortSignal that can be used to abort an async task.

topic?: string

The message's topic.

validator?: MessageValidator<Msg, Opts>

Message validator for the topic.

Generated using TypeDoc