Chapter 12. Network Communication: WebSockets and XMLHttpRequest Level 2

HTML5 largely concerns itself with enhancements to the client. At the same time, however, some technologies for client/server communication have come to fruition and implementation. Technically, neither of the technologies in this chapter are part of HTML5, but they both bring important new functionality to web browsers and already enjoy reasonably wide support.

WebSockets is a new technology for enabling full-duplex (simultaneous, two-way) communications between web pages and servers, and is the first subject of this chapter. The WebSocket protocol and application ...

Get HTML5 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.