25 February 2013
The Definitive Guide to HTML5 WebSocket is the insider’s ultimate WebSocket resource. In the book, Vanessa Wang, Frank Salim, and Peter Moskovits introduce you to the WebSocket API and protocol, and provide real-world examples of protocol communication over WebSocket.
In this excerpt, the authors explain how to layer protocols with WebSocket and decision points in building a higher-level protocol over WebSocket. Get the details on XMPP (eXtensible Messaging and Presence Protocol). Then, build XMPP instant message and chat applications over the WebSocket transport layer. You will connect a web application to the Jabber Instant Messaging (IM) network using XMPP over WebSocket, and add the ability to indicate user’s status and online presence. Finally, get suggestions on how to improve the app with XMPP extensions, developing a user interface, or connecting with Google Talk.
See how this example works.
Continue with The Definitive Guide to HTML5 WebSocket and STOMP on top of WebSocket to build a feature-rich, real-time messaging application. Or watch Vanessa Wang and Peter Moskovits discuss the book.
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.