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/social/xmpp
2016-02-12 14:05:10 +00:00
..
icons resize a couple of icons 2014-06-07 08:31:34 +01:00
92-xmpp.html update social nodes info 2016-02-12 14:05:10 +00:00
92-xmpp.js set xmpp presence offline on close 2016-01-31 23:28:05 +00:00
LICENSE Add xmpp, suncalc and leveldb as npms... 2014-07-06 20:58:52 +01:00
package.json update social nodes info 2016-02-12 14:05:10 +00:00
README.md Add xmpp, suncalc and leveldb as npms... 2014-07-06 20:58:52 +01:00

node-red-node-xmpp

A Node-RED node to talk to an XMPP server.

Install

Run the following command in the root directory of your Node-RED install

npm install node-red-node-xmpp

Usage

Provides two nodes - one to send messages, and one to receive.

###Receive

Connects to an XMPP server to receive messages.

The Buddy field is the id of the buddy or room you want to receive messages from.

Incoming messages will appear as msg.payload on the first output, while msg.topic will contain who it is from.

The second output will show the presence and status of a user in msg.payload. Again msg.topic will hold the user.

###Send

Connects to an XMPP server to send messages.

The To field is optional. If not set the msg.topic property of the message is used to set that value.

If you are joining a chat room then the To field must be filled in with the room name.

You may also send a msg with msg.presence to set your presence to one of

  1. chat
  2. away
  3. dnd
  4. xa

If you do so then the msg.payload is used to set your status message.