There are several places where we want to send and receive XMPP messages in Pong. We first need a message so that each player knows who the other player is. Then we need to send messages when the player moves the position of the left-side pad (from their perspective), and we need to receive messages from the opponent to know how to move the right-side pad when our opponent moves their mouse.
Practical XMPP
By :
Practical XMPP
By:
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
An Introduction to XMPP and Installing Our First Server
Diving into the Core XMPP Concepts
Building a One-on-One Chat Bot - The "Hello World" of XMPP
Talking XMPP in the Browser Using XMPP-FTW
Building a Multi-User Chat Application
Make Your Static Website Real-Time
Creating an XMPP Component
Building a Basic XMPP-Based Pong Game
Enhancing XMPPong with a Server Component and Custom Messages
Real-World Deployment and XMPP Extensions
Customer Reviews