Skip to Content
Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development
book

Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development

by Peter Lubbers, Brian Albers, Frank Salim
August 2010
Intermediate to advanced
304 pages
6h 44m
English
Apress
Content preview from Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development

Chapter 6. Using the HTML5 WebSocket API

In this chapter, we'll explore what you can do with the most powerful communication feature in the HTML5 specification: HTML5 WebSockets, which defines a full-duplex communication channel that operates through a single socket over the web. Websocket is not just another incremental enhancement to conventional HTTP communications; it represents a large advance, especially for real-time, event-driven web applications.

HTML5 WebSockets provide such an improvement from the old, convoluted "hacks" that are used to simulate a full-duplex connection in a browser that it prompted Google's Ian Hickson—the HTML5 specification lead—to say:

"Reducing kilobytes of data to 2 bytes...and reducing latency from 150ms to 50ms ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Using the HTML5 Filesystem API

Using the HTML5 Filesystem API

Eric Bidelman
HTML5 Geolocation

HTML5 Geolocation

Anthony T. Holdener
HTML5 Hacks

HTML5 Hacks

Jesse Cravens, Jeff Burtoft
Jump Start HTML5

Jump Start HTML5

Tiffany B Brown, Kerry Butters, Sandeep Panda

Publisher Resources

ISBN: 9781430227908Purchase book