O'Reilly logo

Node Web Development - Second Edition by David Herron

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

Running the Notes application with Socket.IO

Now we're ready to run the application. First do this to ensure that the socket.IO library is installed, because of the dependency added in package.json earlier.

$ npm install

Then run the application as before:

$ node app.js

Then you will be greeted with the familiar home page:

Running the Notes application with Socket.IO

You will be able to log in as normal:

Running the Notes application with Socket.IO

And you can take the application through its normal paces. The new behavior shows itself when you have multiple browsers connected to the application.

When viewing the home page in one browser, ...

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