[jdev] Initial Presence

Stuart Malin stuart at zhameesha.com
Wed Jun 4 14:45:12 CDT 2008

Hi all. I am writing a client-server system that intends to be XMPP- 
compliant. My initial development work on the client establishes a  
connection with an eJabberd  server.  After establishing a session,  
my client issues an "empty" presence stanza (no "to" or "type"  
attribute, in accord with the XMPP-CORE spec: section 5.1 Initial  

One of the presence responses I receive is "from" and "to" my own  
client instance (resource).  This surprises me.  The spec says:

"In addition, the user's server MUST broadcast initial presence from  
the user's new available resource to any of the user's existing  
available resources (if any)."

However, my own instance (resource) was not an existing resource. But  
I guess this is all a matter of timing.

Although the issuance of such presence to the resource from the  
client isn't prohibited by the spec, I'm just curious how to mentally  
categorize it in the context of XMPP: that is, is the receipt of such  
a presence stanza an idiosyncrasy of the particular server  

Thanks in advance from an XMPP newbie.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20080604/c5f0f707/attachment-0002.htm>

More information about the JDev mailing list