Skip to content

Message Producer

The Messaging Producer is an object which can send text messages to a Queue or Topic destination in the built-in Message Broker. This version is backed by the full fledged messaging broker Apache ActiveMQ.

Basic Usage

import { producer } from "sdk/messaging"

producer.queue("queue1").send("Text Message");

Functions


Function Description Returns
queue() Returns an object representing a Message Queue Queue
topic() Returns an object representing a Message Topic Topic

Objects


Queue

Function Description Returns
send(message) Send a message to this Message Queue -

Topic

Function Description Returns
send(message) Send a message to this Message Topic -