문제

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