[jdev] double presence XML

John McInnes JohnM at jetsoft.com
Mon Jul 5 15:12:41 CDT 2004


Sorry Im still learning the JEPs, havent found this one...
 
This is an interesting feature..? when I am online/available, and one of my roster members becomes available, I get two sets of presence XML from the server. Like this:
 
<presence from='user3 at someserver.com/work' to='user1 at someserver.com'/>
<presence from='user3 at someserver.com/work' to='user1 at someserver.com'><x xmlns='jabber:x:delay' from='user3 at someserver.com/work' stamp='20040701T18:27:13'/></presence>
 
This triggers two 'user online' events in my code. So, ok, I can code around that. But no other situation causes it that I have detected. 
User goes offline gives me only one event. 
Or I go online and find that one of my roster members is online gives me only one event.
 
-john



More information about the JDev mailing list