Subject: Group Chat
Hello all,
I am currently working on an xmpp server and everything is going quite well.
One questions I have though is what is the best way in code to determine that a presence from a client is the first initial group chat presence.
So how do I check this:
<presence xmlns="jabber:client" to="groupchat@chat.example.com/user1"><x xmlns="http://jabber.org/protocol/muc" /></presence>
To see if it contains the <x/> element with a namespace of MUC?
I am thinking that there must be some nice easy way like working with IQs and Query elements within those but haven't been able to find it yet.
Thanks,
Chase
I am currently working on an xmpp server and everything is going quite well.
One questions I have though is what is the best way in code to determine that a presence from a client is the first initial group chat presence.
So how do I check this:
<presence xmlns="jabber:client" to="groupchat@chat.example.com/user1"><x xmlns="http://jabber.org/protocol/muc" /></presence>
To see if it contains the <x/> element with a namespace of MUC?
I am thinking that there must be some nice easy way like working with IQs and Query elements within those but haven't been able to find it yet.
Thanks,
Chase