Closed kipa-zhang closed 5 years ago
So you are trying to "read" an incomign XML stanza from the server?
See https://github.com/xmppjs/xmpp.js/tree/master/packages/xml#reading
client.on('stanza', stanza => {
console.log(stanza.getChild('body'))
});
Thanks very much!
How to use @xmpp/xml analysis XML from server?
Choose another one module?
@xmpp/xml can only read msg create by itself?