4
votes

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.

1
i have used xep 45 but this query retreives all available chat rooms, but i want specific room which i have created or i am a member of <iq from='[email protected]' to='conference.localhost.com' type='get'> <query xmlns='jabber.org/protocol/disco#items'> </iq>praveenraj

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' });