Discovering MUC
Now we know all about joining and sending and receiving messages in a multiuser chat room, but one thing we haven't discussed so far is finding the darn things! Let's make that right.
As with most things in XMPP, if you as a user are trying to find out what things are there and what they do, you lean on your old friend DISCO
. Let's look at a typical round trip to find an MUC room that we're interested in. First, we make a DISCO#info
request to the server to see what features it supports:
<iq type='get' id='query1' from='lorraine@baines.fam/dining-room' to='chat.baines.fam'> <query xmlns='http://jabber.org/protocol/disco#info'/> </iq>
The server will then return a list of features supported (note that this could potentially be a long list if the server supports a lot of features!):
<iq type='result' id='query1' from='chat.baines.fam' to='lorraine@baines.fam/dining-room'> <query xmlns='http://jabber...