This course has been updated! We now recommend you take the AWS for Front-End Engineers (ft. S3, Cloudfront & Route 53) course.

Check out a free preview of the full Zero to Production Node.js on Amazon Web Services course:
The "Using Socket.io" Lesson is part of the full, Zero to Production Node.js on Amazon Web Services course featured in this preview video. Here's what you'd learn in this lesson:

Socket.io is the de-facto standard for real-time functionality in Node.js applications. It contains both a client-side and server-side libraries to implement event-driven interactions over web sockets.

Get Unlimited Access Now

Transcript from the "Using Socket.io" Lesson

[00:00:00]
>> [MUSIC]

[00:00:03]
>> Kevin Whinnery: The next challenge that we have is to start adding some real time user interface capabilities to the application. And I think we'll probably take this one and work into lunch if we're having lunch at noon. So we'll talk about this and set up the exercise, and then we can work on that kind of over lunch and maybe pick back up again at right around 1 PM local time.

[00:00:34] So Socket.IO is the one library I'll present here during the day, for which there is no alternate. It's pretty much the defacto standard for adding real time capabilities to a node app. There are a couple others out there that you can use, but Socket.IO is by far the most popular.

[00:00:54] And Socket.IO essentially provides two things to your application. It provides a client side library that you'll load up in your HTML. That will allow you to communicate with the server over a websocket. And it also provides a server side API that you can use in your Node.js code to push data to connect to clients over a websocket.

[00:01:21] And I think the best way to go through this is to again show you the sort of hello world of Socket.IO which is a simple chat application.