node-red / node-red-nodes

Extra nodes for Node-RED
Other
988 stars 593 forks source link

xmpp messages without type attribute can't be handled #1071

Closed jmrt47 closed 3 months ago

jmrt47 commented 3 months ago

Which node are you reporting an issue on?

node-red-node-xmpp

What are the steps to reproduce?

Create a xmpp in node and connect it o a xmpp server. Send a xmpp message to the connected client without setting the message 'type' attribute. The message body should contain the chat message.

:link: Reference: According to rfc3921 the type attribute of xmpp message is only RECOMMENDED and not mandatory.

What happens?

The xmpp in node does not emit the received message send to the xmpp user.

What do you expect to happen?

Node should be able to process xmpp messages without type attribute set. According to the xmpp protocoll this is a valid messsage.

:bulb: Hint: in 92-xmpp.js received xmpp message are parsed based on the type attribute.

Please tell us about your environment: