mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Added INFO abour settings for xmpp. (Apologies for missing in first place...).
NOTE:... there is still a bug in the underlying simple-xmpp npm.. see https://github.com/simple-xmpp/node-simple-xmpp/issues/12 for both the probem and the fix (not yet pulled).
This commit is contained in:
@@ -47,11 +47,17 @@
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-help-name="xmpp">
|
||||
<p>Connects to an XMPP server to send and receive messages.</p>
|
||||
<p>Incoming messages will appear as <b>msg.payload</b> on the first output, while <b>msg.topic</b> will contain who it is from.</p>
|
||||
<p>The second output will user presence and status in <b>msg.payload</b>.</p>
|
||||
<p>The <b>To</b> field is optional. If not set uses the <b>msg.topic</b> property of the message.</p>
|
||||
<p>If you are joining a room then the <b>To</b> field must be filled in.</p>
|
||||
<p>Connects to an XMPP server to send and receive messages.</p>
|
||||
<p>Incoming messages will appear as <b>msg.payload</b> on the first output, while <b>msg.topic</b> will contain who it is from.</p>
|
||||
<p>The second output will user presence and status in <b>msg.payload</b>.</p>
|
||||
<p>The <b>To</b> field is optional. If not set uses the <b>msg.topic</b> property of the message.</p>
|
||||
<p>If you are joining a room then the <b>To</b> field must be filled in.</p>
|
||||
<p>Uses the simple-xmpp module - you may also need to pre-configure your xmpp settings as per below.</p>
|
||||
<p>Either add to your settings.js file...</p>
|
||||
<p><pre>xmpp : { jid : "yourid", password: "password" },</pre></p>
|
||||
<p>Or create a file xmppkeys.js containing</p>
|
||||
<p><pre>module.exports = { jid: "yourid", password: "password" }</pre></p>
|
||||
<p>This <b>must</b> be located in the directory above node-red.</p>
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
Reference in New Issue
Block a user