如何使用node-xmpp从群聊中离开

这不起作用。 这里cl是谁想离开组的xmpp-client对象。

 cl.on('online', function (userData) { var userJid = userData.jid.user + '@' + userData.jid.domain + "/" + userData.jid.resource, roomJid = params.typeId + params.service + userData.jid.domain + '/' + params.userName; pres = new xmpp.Element('presence', { from : userJid, to : roomJid, //54d213e000e9e50c4e8e5a2b@conference.domain/nickName type : 'unavailable', xmlns : 'jabber:client' }); status = cl.send(pres); }); 

Solutions Collecting From Web of "如何使用node-xmpp从群聊中离开"