1.0.11 • Published 1 year ago

@eswarpr/node-red-azure-service-bus v1.0.11

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

@eswarpr/node-red-azure-service-bus

A set of Node-RED nodes to send and receive Azure Service Bus messages. You will need access to a valid Microsoft Azure subscription and Azure Service Bus deployed in it to use this node.

Install

Either use the Node-RED Menu -> Manage Palette option to install, or run the following command in your Node-RED user directory - typically ~/.node-red

npm i @eswarpr/node-red-azure-service-bus

Usage

Note: Please ensure that you have a valid Azure Service Bus subscription at hand before using this node.

Azure Service Bus - Receive Topic Message

Generates a msg.payload set to the body of the message received from service bus topic to a subscription.

Outputs

  • msg.topic - string - the service bus topic that was the source of the message
  • msg.payload - any - the contents of the message that was received from service bus
  • msg.message - object (see below) - additional information about the message

The msg.message will be set to an object containing the following additional data:

  • contentType - string - the MIME type of the received message, as specified at the source.
  • id - string - the unique ID of the message as specified at the source.
  • subject - string - the subject of the message as specified at the source.
  • properties - object - additional message metadata specified at the source.

Azure Service Bus - Receive Queue Message

Generates a msg.payload set to the body of the message received from a service bus queue.

Outputs

  • msg.topic - string - the service bus queue that was the source of the message
  • msg.payload - any - the contents of the message that was received from service bus
  • msg.message - object (see below) - additional information about the message

The msg.message will be set to an object containing the following additional data:

  • contentType - string - the MIME type of the received message, as specified at the source.
  • id - string - the unique ID of the message as specified at the source.
  • subject - string - the subject of the message as specified at the source.
  • properties - object - additional message metadata specified at the source.

Azure Service Bus - Send Topic Message

Generates and sends a service bus message to the topic specified in the configuration of the node.

Input

  • msg.payload - any - the message to send
  • msg.message - object (see below) - additional information about the message

The msg.message property can be setup with the following additional information, which will passed without changes to service bus as a part of the sent message:

  • contentType - string - the MIME type of the message contents
  • properties - object - additional metadata for the message

Azure Service Bus - Send Queue Message

Generates and sends a service bus message to the queue specified in the configuration of the node.

Input

  • msg.payload - any - the message to send
  • msg.message - object (see below) - additional information about the message

The msg.message property can be setup with the following additional information, which will passed without changes to service bus as a part of the sent message:

  • contentType - string - the MIME type of the message contents
  • properties - object - additional metadata for the message