0

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

Meliborn
  • 6,495
  • 6
  • 34
  • 53

1 Answers1

0

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);
});
Meliborn
  • 6,495
  • 6
  • 34
  • 53