O'Reilly logo

HTML5 for .NET Developers: Single page web apps, JavaScript, and semantic markup by Jim Jackson II and Ian Gilman

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 8. Websockets

This chapter covers

  • Understanding the basic difference between HTTP and TCP traffic
  • Using Websockets and JavaScript to communicate in real time over the web
  • Installing Node.js and building a simple TCP server

The Websockets specification is one of the most interesting and paradigm-shifting APIs in the HTML5 stack. When implemented in a web platform, your applications can go from sending a request and waiting for a response to talking to a server or other clients in real time.

With Websockets, you can build, for instance, a web application on a tablet device that can play a game with thousands of players in real time. MMOG (massively multiplayer online games) are already popular, and the versions based on HTML5 are ...

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