Skip to Content
XMPP: The Definitive Guide
book

XMPP: The Definitive Guide

by Peter Saint-Andre, Kevin Smith, Remko Tronçon
April 2009
Beginner to intermediate
308 pages
9h 8m
English
O'Reilly Media, Inc.
Content preview from XMPP: The Definitive Guide

Chapter 3. Presence

Is Anybody Home?

Imagine that you want to contact a friend or colleague. In the old days, you might have sent the person a letter (you know, one of those pieces of paper that is delivered to your home or office), and then waited for a reply. Or you might have phoned the person and hoped she was around (if not, you would have left a message with a person or an automated system, perhaps playing “phone tag” for a few days). Or, more recently, you might have sent an email, perhaps receiving a reply in 10 minutes or so, but perhaps days later.

In XMPP, you can know when a contact of yours is online and available for communication, using a technology called presence. So instead of waiting and wondering, or just getting lucky, your Jabber client will show you the network availability of your contacts, usually with an indicator such as a light bulb icon (on the theory that if someone is home, the lights will be on). Figure 3-1 shows an example of such a presence-enabled contact list in an IM client.

Your roster provides a visual representation of the people you know and trust on the network, including information about their network availability or “presence”
Figure 3-1. Your roster provides a visual representation of the people you know and trust on the network, including information about their network availability or “presence”

However, presence is not limited to pretty little icons; it enables you to get real work done. In this chapter, we delve more deeply into presence, and explore how you can use it to build smarter, more interactive ...

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

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

WebAssembly: The Definitive Guide

WebAssembly: The Definitive Guide

Brian Sletten
The Definitive Guide to HTML5 WebSocket

The Definitive Guide to HTML5 WebSocket

Vanessa Wang, Frank Salim, Peter Moskovits
WebSocket

WebSocket

Andrew Lombardi
HTTP: The Definitive Guide

HTTP: The Definitive Guide

David Gourley, Brian Totty, Marjorie Sayer, Anshu Aggarwal, Sailu Reddy

Publisher Resources

ISBN: 9780596157524Errata Page