The Definitive Guide to HTML5 WebSocket
Build Real-Time Applications with HTML5
By Vanessa Wang, Frank Salim, and Peter Moskovits
This book provides an introduction to WebSocket, then describes the WebSocket API and Protocol and provides hands-on examples. We deep dive into three use cases for WebSocket, all using higher-level standard protocols (text and binary) over WebSocket. We walk through building a grown-up version of a chat application using XMPP/WS, a rock-paper-scissors game using pub-sub and STOMP/WS, and desktop sharing using RFB/WS (VNC). Finally, we examine security and deployment considerations.
Watch two of the authors, Vanessa and Peter, give a 90 second overview of the book:
Table of Contents
- Introduction to HTML5 WebSocket
- The WebSocket API
- The WebSocket Protocol
- Building Instant Messaging and Chat over WebSocket with XMPP
- Using Messaging Over WebSocket with STOMP
- VNC with the Remote Framebuffer Protocol
- WebSocket Security
- Deployment Considerations
Appendix B: WebSocket Resources
Source Code and Preconfigured VM
The book comes with the source code you need to get the demos up and running, as well as an easy-to-use VM with screencasts that show you what you’ll build.
The screencasts below give you a quick view into the VM environment and what the hands-on that the chapters cover.
Chapter 2: The WebSocket API
Chapter 3: The WebSocket Protocol
Chapter 4: Building Instant Messaging and Chat over WebSocket with XMPP
Chapter 5: Using Messaging Over WebSocket with STOMP
Chapter 6: VNC with the Remote Framebuffer Protocol
Published by Apress and available on Amazon, this is the first printed book (also available as an ebook, for the Kindle, as a Nook book, and other formats) fully dedicated to the WebSocket technology. After reading this book, we hope you’ll be as excited and inspired to use WebSocket as we are.