I am working on the chat application. I want to implement the group chat functionality in the web client. I have done things till group create and basic configuration and joining the group. I want to know if there is any extension developed Or any other way by which I can get the list of group which user has created or is member of. e.g in watsapp, any body can create group and add me as a member. how to konw which room i have been added as a member, is there any iq request in xmpp muc.
4
votes
1 Answers
0
votes
Your iq is close. You need to address the room, not the server.
var iq = $iq({
type: 'get',
from: '[email protected]',
to: '[email protected]'
}).c('query', { xmlns: 'http://jabber.org/protocol/disco#items' });