1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/io/stomp
Olivier Verhaegen 0d7f0cb16d
STOMP refactor in accordance with MQTT (shared connection using config node) + client ACK (#988)
* Bugfix: show connected state after reconnect

* Bugfix: show connected state for stomp out node after reconnect

* Add support for ACK messages

* Add optional subscription id

* Typo fix

* Subscription ID not required

* Bugfix "node.ack is not a fuction"

* Use shared client connection

* Bugfix shared connection

* Improvements & bugfixes to shared connection

* Bugfix connecting state

* Set connected state in connect callback

* Typo fix

* add server shared connection variables

* Bugfix for shared state

* WIP

* Complete refactor based on MQTT nodes to be able to share server connection between nodes

* Change address back to server for backwards compatibility

* Fixes for race conditions on node closing

* Add disconnect timeout of 2s to avoid "Error stopping node"

* If not connected, do not try to disconnect

* Fix for disconnecting log

* Styling fix for ack select form row

* Typo fixes

* Typo fix

* Bugfix: subscription before connected

* Bugfix: stringify payload before sending to be able to send numbers etc

* Bugfix: not saving ack field

* Bugfix: ack

* Bugfix: ack

* Bugfix: ack & better docs regardign ack

* BugFix: reconnect delay

* Improvements regarding cleanup on close

* Handle connect and reconnect event in the same way

* Typo fix

* Fix backwards compatibility
2023-05-30 11:05:25 +01:00
..
18-stomp.html STOMP refactor in accordance with MQTT (shared connection using config node) + client ACK (#988) 2023-05-30 11:05:25 +01:00
18-stomp.js STOMP refactor in accordance with MQTT (shared connection using config node) + client ACK (#988) 2023-05-30 11:05:25 +01:00
LICENSE Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
package.json Bump stomp for status PR #987 2023-04-11 14:37:47 +01:00
README.md update io nodes info style 2016-03-02 13:27:52 +00:00

node-red-node-stomp

A Node-RED node to publish and subscribe to and from a Stomp server.

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-node-stomp

Usage

Connects to a Stomp capable server to send and receive messages.

The destination field is optional. If set it overrides the msg.topic property of the message.

As noted here, while not a requirement of the Stomp protocol, if talking to an ActiveMQ server the destination should begin with "/queue/" or with "/topic/".

This node only uses the simple security version of the stomp-client.