HTML and CSS Reference
HTML5 has a more general-purpose alternative to cross-document messaging known as
channel messaging. It allows you to create as many message ports as you want, not only
wasn't necessary to complete the application in this chapter, but if you think you'll find it
In this chapter, you've learned about the new messaging APIs in HTML5, between pages
in different windows on the client, with cross-document messaging, and between client
and server, with server-sent events and WebSockets. You've also gained a practical under-
standing of how to use one of the new wave of web servers optimized for event-driven
communication, Node.js. With all this new knowledge you're well equipped to build the
next generation of web applications, based on lightweight, event-driven data communica-
tion between client and server, and you'll be able to join several such applications together
in client browsers in a lightly coupled way thanks to cross-document messaging.
In the next chapter, you'll move on to consider an application environment where saving
every byte makes a real difference: mobile web applications. HTML5 offers new capabilit-
ies that allow your application to keep working when no network is available.