Вопрос

I can send messages to ejabberd, but how receive - i have no idea. Maybe someone has live example?

Это было полезно?

Решение

Solution is using "stanza" event. Here is example:

cl.addListener('stanza', function(stanza) {
    connection.write(stanza.children[1].children);
    console.log(stanza.children[1].children);
});
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top