method RabbitMqBroker.prototype.publish
Since 0.1.0
RabbitMqBroker.prototype.publish<T>(
topic: string,
message: T
): Promise<void>

Publishes a message to a topic.

Type Parameters

The message payload type

Parameters

topic: string

The topic to publish to

message: T

The message payload

Return Type

Promise<void>

Resolves when published

Usage

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