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.

Get Programming Jabber now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.