A little while ago, we announced that our book, The Definitive Guide to HTML5 WebSocket, was on the horizon. Frank Salim, Peter Moskovits, and I are super excited to share the news that we finished writing the book and it’s NOW AVAILABLE. Yay!
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. 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.
Watch two of the authors, Vanessa and Peter, give a 90 second overview of the book: