Chapter 8. Using Messages and Presence
Now that we have a decent grounding in the Jabber protocol and technology, let’s put it to work for us. This chapter fits Jabber into solutions for two or three common problems and shows how the technology and features lend themselves very well to application-to-person (A2P) scenarios.
By way of introduction, we’ll have a look at constructing and sending
simple Jabber messages, to effect an “in-your-face” notification mechanism
for a version control system. We’ll also introduce a usage of the
<presence/> element as an availability
indicator for connecting systems. Finally we’ll combine the two features
(<message/> and the concept of
availability) to make the notification mechanism
“sensitive” to the presence of the person being notified.
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