Setu-TS
    Preparing search index...

    Interface SubscriptionDefinition

    The declarative form of one IMessageBroker.subscribe() call — the entry an application writes instead of calling subscribe() imperatively after start().

    0.3.0

    interface SubscriptionDefinition {
        handler: MessageHandler;
        options?: SubscribeOptions;
        topic: string;
    }
    Index

    Invoked per delivered message, exactly as the imperative subscribe() accepts.

    Consumer-group configuration, exactly as the imperative subscribe() accepts.

    topic: string

    The topic to subscribe to (the subscribe() topic argument).