O'Reilly logo

CoffeeScript Programming with jQuery, Rails, and Node.js by Michael Erasmus

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

WebSocket

Since I would like to show off some of the scalability features of Node and the types of applications that it's normally used for, we'll be making use of another interesting modern web technology, known as WebSocket.

The WebSocket protocol is a standard for allowing raw, bi-directional, and full-duplex (simultaneous in both directions) TCP connections over the standard HTTP port 80. This allows for a client and server to establish a long-running TCP connection with which the server can perform push operations, which has traditionally not been possible with HTTP. It is often used in applications where there needs to be lots of low-latency interaction between the client and server.

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