Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Node Web Development - Second Edition
  • Table Of Contents Toc
Node Web Development - Second Edition

Node Web Development - Second Edition - Second Edition

By : David Herron
4 (1)
close
close
Node Web Development - Second Edition

Node Web Development - Second Edition

4 (1)
By: David Herron

Overview of this book

Presented in a simple, step-by-step format, this book is an introduction to web development with Node.This book is for anybody looking for an alternative to the P languages (Perl, PHP, Python), or anyone looking for a new paradigm of server-side application development.The reader should have at least a rudimentary understanding of JavaScript and web application development.
Table of Contents (17 chapters)
close
close
Node Web Development Second Edition
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
1
Index

Events between the Notes server and client code


Socket.IO extends the EventEmitter concept to allow communication, across the network, between the server and client. Before implementing our code, we must know which events our application will require for communicating transactions between the server and client. The exact events for a given application of course are determined by the application needs.

The real-time functions we'll add to Notes will be in the main page, and in the noteview page. In both cases, there are opportunities for someone else to add, modify, or delete a note which in turn means updating other clients of the change.

With that in mind, ponder over these events:

  • notetitles: This event is sent by the Notes home page, from the browser, when it wants to refresh the list of notes. The home page is to send this event when it wants to update itself with the list of note titles. This way as Notes are created, updated, or deleted, the home page can update itself.

  • noteupdated:...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Node Web Development - Second Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon