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 Getting Started with Meteor.js JavaScript Framework - Second Edition
  • Table Of Contents Toc
  • Feedback & Rating feedback
Getting Started with Meteor.js JavaScript Framework - Second Edition

Getting Started with Meteor.js JavaScript Framework - Second Edition

By : Isaac Strack
4.2 (5)
close
close
Getting Started with Meteor.js JavaScript Framework - Second Edition

Getting Started with Meteor.js JavaScript Framework - Second Edition

4.2 (5)
By: Isaac Strack

Overview of this book

This book is for developers or students who have a working knowledge of JavaScript and HTML, and want to learn how to quickly develop full-stack web applications using pure JavaScript.
Table of Contents (14 chapters)
close
close

Multiple clients


Good things should be shared. Meteor gets this, and as we're about to see for ourselves, the reactive programming model allows us to share updates in real time across multiple clients.

With your Chrome web page still open to http://localhost:3000/, open a new browser tab and navigate to the same page.

Tip

If you really want to get fancy, you can conduct this same experiment with multiple browsers (Firefox, Opera, or Safari). Each session will be live and reactive!

You now have two clients open, which is simulating the application being open by different people, at different locations, with different computers. Meteor's reactive model allows you to treat all clients in the same manner, and a change made by one will be propagated to all the others.

With your eyes on the new second browser, type the following command into the console of browser #1:

> lists.insert({Category:"Vinyl Records"})

You will notice that the change propagates to both browsers, without a page refresh:

Feel...

Limited Time Offer

$10p/m for 3 months

Get online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech and supported with AI assistants
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

Create a Note

Modal Close icon
You need to login to use this feature.

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note