so i’‘m already onto doing the multi-user chat of our application. but i have some certain questions that i’‘d like to ask regarding muc. i didn’‘t find any high-relevant match in the search so i’‘m posting this. (and i’'d probably be using this thread to post my other muc question–if ever)
if the constructor MultiUserChat(XMPPConnection xmpp, String roomName) creates the room, what’‘s the point of using the create(String nickname) function? please clarify because i don’'t understand its use.
i’‘m using the latest version of wildfire server as our server for the development process and the jabber.org server for implementations and demos. i was just thinking if i could change the number of users in a room and if it’‘s possible, what’‘s the function to use? wildfire has a limit of 30 users, but what if i wanted a higher upper limit? i don’‘t know about jabber.org though. generally speaking, if there’'s a possibility that i could change the settings of a room?
Q1: The constructor in the the MUC class does not create a new room. It creates an object for you to work with of an already existing room on the server. So if you tried
Q1: The constructor in the the MUC class does not create a new room. It creates an object for you to work with of an already existing room on the server. So if you tried
And the room name did not exist the method would fail.
ah so if i want to create a room, i have to create an instance of the MultiUserChat and indicate the roomName there and then use the create(String username) function to create the room? please correct me if i’'m wrong. and what if i wanted to make more rooms?
MUC#createRoom(String jid) however, actually creates a new room on the server and sets the jid as the room owner.
huh? i didn’‘t see any createRoom function in the MUC class… there’'s create but not createRoom
i have a new muc question. i think this was mentioned in another thread but the answer wasn’'t clear enough so i was thinking of asking it again.
so i get it now how to “create” a room using MultiUserChat. my issue is with “joining” a room. so i’‘ve done the “join room” part of my application, but i can’‘t seem to fix the part where a user joins a room that does not exist or hasn’‘t been created yet. you see, it doesn’‘t throw the error message 404 (room does not exist or is locked). instead it creates the room and makes the user who “joins” the room the owner of the room (i know because i’‘m using wildfire as the local server, so i could keep track of what’'s happening). the constructor description in the javadocs said that “…no information is sent to or received from the server until a user attempts to join…”