- You can set the rooms to be persistent by default on your jabber server.
- Creating rooms is a 2 step process. First creating the room then configuring the room.
- You can join as many rooms as you like.
A room config is like (you'll get a form on the first step of available fields if you check the response from the server).
The 2nd step looks like:
var iq, stanza;
iq = $iq({
to: newroomjid,
type: "set"
}).c("query", {
xmlns: Strophe.NS.MUC_OWNER
});
iq.c("x", {
xmlns: "jabber:x:data",
type: "submit"
});
iq.c('field', { 'var': 'FORM_TYPE' }).c('value').t('http://jabber.org/protocol/muc#roomconfig').up().up();
iq.c('field', { 'var': 'muc#roomconfig_roomname' }).c('value').t(roomName).up().up();
stanza = iq.tree();