method QueueAdapter.send
QueueAdapter.send<T>(
queue: string,
data: T,
options?: SendOptions
): Promise<string>

Send a single message to the specified queue.

Type Parameters

Parameters

queue: string

Name of the destination queue.

data: T

Payload to send.

optional
options: SendOptions

Delivery options like delay or headers.

Return Type

Promise<string>

The unique ID assigned to the message by the broker.

Usage

import { type QueueAdapter } from ".";