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