Book Image

Practical XMPP

By : Steven Watkin, David Koelle
Book Image

Practical XMPP

By: Steven Watkin, David Koelle

Overview of this book

XMPP (eXtensible Messaging and Presence Protocol) is a messaging protocol that enables communication between two or more devices via the Internet. With this book, developers will learn about the fundamentals of XMPP, be able to work with the core functionality both server-side and in the browser, as well as starting to explore several of the protocol extensions. You will not only have a solid grasp of XMPP and how it works, but will also be able to use the protocol to build real-world applications that utilize the power of XMPP. By the end of this book, you will know more about networking applications in general, and have a good understanding of how to extend XMPP, as well as using it in sample applications.
Table of Contents (16 chapters)
Practical XMPP
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
An Introduction to XMPP and Installing Our First Server

Chapter 6. Make Your Static Website Real-Time

OK, now we're really starting to get moving with XMPP and we still haven't even begun to scratch the surface. In this chapter, we're going to start increasing our speed towards 88 mph! Maybe not quite, but we are going to introduce a very important area of XMPP (something from which many, many other protocols and projects are built), and that's Publish-Subscribe, or pubsub for short. The original pubsub specification was documented in XEP-0060 (http://www.xmpp.org/extensions/xep-0060.html) and, while having some extensions, has remained fairly solid. So once we've covered some basics, we're just going to dive right into some practical work and learn how to make our static website real-time with very little code or effort using XMPP.

Pubsub is used extensively by many different companies in many different sectors. For example, it is often used to build real-time monitoring systems, social networks, and Internet of Things (IoT) setups, often with...