StanzaJS Discussion - 2021-08-20


  1. james.olivas Hi, I’m trying to use sendIQ to make a custom stanza where multiple items have the same key. For instance, I have an attribute named <keys>, and I want to nest several other <key> attributes, each with a different ID and value, inside <keys>. However, I’m having trouble doing this using sendIQ, which is how I’m able to form this custom stanza. When I try putting multiple <key> attributes, I initially get blocked by an ESLint rule that indicates no duplicate keys; when I try to disable that rule, the only <key> that appears in my XMPP is the last one that I define in the client.sendIQ input object. Can someone please help me figure out how to put multiple <key> attributes into my stanza? Thank you!