Interface WeeniePublisherInterface<PubMsgType>

The publisher side of a weenie pubsub handler

interface WeeniePublisherInterface<PubMsgType> {
    publish(msg): Promise<void>;
}

Type Parameters

  • PubMsgType extends {
        key: string;
    }

Hierarchy (view full)

Methods

Methods

  • Publish a message to the configured exhange on the given routing key. The message will be published using the message's key attribute as the routing key.

    Parameters

    Returns Promise<void>

Generated using TypeDoc