Skip to content

rabbitmq/producer

Documentation

Overview

Classes

Producer

send()

Sends a message to the specified RabbitMQ queue.

ts
static send(queue: string, message: string): void;
ParameterTypeDescription
queuestringThe name of the RabbitMQ queue to send the message to.
messagestringThe content of the message to be sent (as a string).

Returns

  • Type: void
  • Description: