GroupChat vs MultiUserChat

I understand that GroupChat is being deprecated, and that MultiUserChat should be used instead, going forward.

But, how would I know whether or not a room supports MultiUserChat?

I’‘ve noticed that after joining a room, I’'ll get a message that says “This Room Supports the MUC Protocol”, but is there a way to tell ahead of time?

Also, if a room doesn’'t support MUC but I try to join using MultiUserChat, what kind of error will I get?

Finally, if a non-MUC room needs a password to join, how can I do that with the GroupChat object? Or is it that only MUC supports the concept of having a password to join?

Hey,

But, how would I know whether or not a room supports

MultiUserChat?

I’‘ve noticed that after joining a room, I’'ll get a

message that says "This Room Supports the MUC

Protocol", but is there a way to tell ahead of time?

You can try to discover information about the room or the service that is hosting the room. Both the room and the service will answer the following feature if they support MUC:

<feature var=''http://jabber.org/protocol/muc''/>

Also, if a room doesn’'t support MUC but I try to join

using MultiUserChat, what kind of error will I get?

You will get no error since the groupchat service should ignore any MUC extension sent by the client. But a lot of MUC functionality won’‘t be available and if you try to use it you may get an error. But you shouldn’'t have problems joining, leaving and sending messages.

Finally, if a non-MUC room needs a password to join,

how can I do that with the GroupChat object? Or is

it that only MUC supports the concept of having a

password to join?

AFAIK, the old groupchat service does not have password protected rooms.

Regards,

– Gato