Hello all,
I am able to create a GroupChat using the following code:
public void createGroupChat(String user)
{
try
{
XMPPConnection connx = getConnx(user,“password”);
GroupChat groupChat = connx.createGroupChat("testroom@conference.me.myserver.com");
groupChat.join(user);
groupChat.sendMessage(“HERE I AM”);
Iterator it = groupChat.getParticipants();
while(it.hasNext())
{
System.out.println("Occupants are "+it.next().toString());
}
}
catch(XMPPException xe){xe.printStackTrace();}
}
}
/code
Now I have a PacketListener attached to the connection and the results of having two users connect are the following:
gforty IS CONNECTED via getConnx method
testroom SAYS This room is locked from entry until configuration is confirmed. to gforty
testroom SAYS This room is now unlocked. to gforty
testroom SAYS HERE I AM to gforty
sep IS CONNECTED via getConnx method
Occupants are testroom@conference.me.myserver.com/gforty
Occupants are testroom@conference.me.myserver.com/sep
testroom SAYS HERE I AM to sep
testroom SAYS HERE I AM to sep
My question is, is this normal for the server to send these messages ie…“This room is locked…”
when each user joins the muc?
Is there a way to suppress this traffic?
also why is there a message from testroom that says HERE I AM as I would have thought that it would have read:
sep SAYS HERE I AM
since I did a groupChat.sendMessage(“HERE I AM”);?
Thanks.
If anyone has a simple implementation of MultiUserChat I would appreciate it as I searched and there was not much since it appears to be new.
TIA!