O'Reilly logo

Introducing HTML5 by Bruce Lawson, Remy Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10 Messages, Workers, and Sockets

Remy Sharp

WEB MESSAGING, Web Workers, and Web Sockets are all different APIs but all have the same communication API, which is why I will show you all three together. Only the Messaging API is part of the official HTML5 spec, but all three of these APIs are valuable additions to any web application.

Messaging allows for sending messages from one domain to another, something that Ajax security policies have long prevented—for good reason—but is now starting to open up with the right security measurements in place.

Image NOTE The new XMLHttpRequest level 2 object (http://www.w3.org/TR/XMLHttpRequest2/), out ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required