from documentation:
MultiUserChat muc = new MultiUserChat(conn1, "myroom@conference.jabber.org");
// Create the room
muc.create(“testbot”);
why does method to create muc room take a nickname for argument (from docs: create(String nickname) )? whose nickname? what if you’'re creating chat room before anyone has logged in?
(I need to:
- find out if muc room exists, 2) create muc room if it doesn’'t, 3) if muc room exists already connect user(s) to muc room…)
so: muc.create(nickname);
muc.join(nickname)
next user logs in, muc room exists already… so just do
muc.join(nickname2)?
how do you create nickname? (I thought create(nickname) created nickname, but according to documentation it creates muc room, how do you crate nickname for user to enter a room that already exists?
from docs:
create(String nickname)
Creates the room according to some default configuration, assign the requesting user as the room owner, and add the owner to the room but not allow anyone else to enter the room (effectively “locking” the room).
but I need to create a room that other users can join (it’'s a Multi-user chat room, after all…
how do I do this, pls? very confused about muc rooms, have created, still can’'t connect user(s) to it… get a 502 error… (am connected to server ok…) thank you very much…