The Presence Element
The <presence/> element is
used to convey a Jabber entity’s availability. An entity
can be available, which means that it’s connected and
any messages sent to it will be delivered immediately, or it can be
unavailable, which means that it’s not connected, and
any messages sent to it will be stored and delivered the next time a connection
is made.
For the large part, it is the entity itself, not the Jabber server to which it connects, that controls the availability information. The Jabber server will communicate an entity’s unavailability if that entity disconnects from the server but will do that only if the entity has communicated its availability beforehand.
Availability information isn’t a free-for-all. Presence in Jabber is usually exchanged within a subscription mechanism. See Section 5.4.2.3 for an explanation.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access