September 2014
Intermediate to advanced
256 pages
5h 25m
English
In this chapter, you’ll learn how to make applications more interactive by adding WebSockets. WebSockets allow you to push live changes from a server into a browser.
In the interest of finding ways to develop more interactive, more immersive applications, browsers now support a new protocol in addition to HTTP: WebSockets. HTTP was pretty much the only way for developers to communicate with browsers for a long time. It’s a reliable, relatively quick protocol that developers got by with.
The major downside to HTTP is that it’s one-way for web applications. The browser cannot be an HTTP server, which means that the client must initiate any communication. This works well for ...