Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以向 ejabberd 发送消息,但如何接收 - 我不知道。也许有人有活生生的例子?
解决方案是使用“节”事件。这是示例:
cl.addListener('stanza', function(stanza) { connection.write(stanza.children[1].children); console.log(stanza.children[1].children); });