Until recently, creating desktop-like applications in the browser meant using inefficient Ajax or Comet technologies to communicate with the server. With this practical guide, you’ll learn how to use WebSocket, a protocol that enables the client and server to communicate with each other on a single connection simultaneously. No more asynchronous communication or long polling!
Learn how to use WebSocket API events, messages, attributes, and methods within your client application
Build bi-directional chat applications on the client and server with WebSocket as the communication layer
Create a subprotocol over WebSocket for STOMP 1.0, the Simple Text Oriented Messaging Protocol
Use options for older browsers that don’t natively support WebSocket
Protect your WebSocket application against various attack vectors with TLS and other tools
Debug applications by learning aspects of the WebSocket lifecycle
Andrew Lombardi is a veteran entrepreneur and software developer. His parents taught him to code while barely able to read on an Apple II he still wishes he had. He’s been running the consulting firm Mystic Coders for 15 years, coding, speaking internationally, and offering technical guidance to companies as large as Walmart and companies with problems as interesting as helicopter simulation. He firmly believes that the best thing he’s done so far is being a great dad.
The animal on the cover of WebSocket is a sea anemone (order Actiniaria).
More than 1,000 species of sea anemones are found throughout the world's oceans. They are particularly abundant in coastal tropical waters. These organisms tend to remain rooted in one place, anchoring to hard surfaces such as coral reefs or rocks on the sea floor.
Closely related to coral and jellyfish, sea anemones are invertebrates with cylindrical bodies surrounded by tentacles. They vary in size, ranging from half an inch to six feet in diameter, and may possess anywhere from a dozen to several hundred tentacles. They also appear in an array of vivid colors, resembling flowers such as their namesake, the terrestrial anemone.
Despite their elegant beauty, these animals are quite predatory. Their tentacles are dotted with stinging cells that are used to immobilize and consume small fish and crustaceans. Accordingly, sea anemones have very few predators of their own, and many species live for more than 50 years.
Sea anemones are frequently cited for their symbiotic relationships with clownfish, which have a protective coating that renders them immune to the anemone's lethal sting. The clownfish is safe from its enemies among the anemone's tentacles, while the anemone enjoys food scraps from the clownfish's meals.
Subject is truly interesting and the author seems to know his stuff. But updates are lagging and I'm waiting to get past ch.4 since a couple of months. The example in chapter 4 required a lot of handling (RabbitMQ, Vagrant, AMQP, etc.) not directly related to WebSocket, so I hope that projects in the coming chapters will be more focused and avoid irrelevant complexities.
Bottom Line Yes, I would recommend this to a friend