Is it possible to receive custom stanzas in converse.js?
I tried to listen
to incoming messages:
converse.plugins.add('dummy', {
initialize: function() {
var _converse = this._converse;
_converse.api.listen.on('message', function(xmlMessage) {
console.log('Received message!');
});
}
});
My custom stanza looks like this:
<message to='...' from='...' type='groupchat'>
<custom_stanza>
<created_at>2018-02-14T16:25:00+01:00</created_at>
<store xmlns='urn:xmpp:hints'/>
</custom_stanza>
</message>
But unfortunately this stanza won't get recognized here. Normal messages work.