Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with Meteor.js JavaScript Framework - Second Edition

You're reading from   Getting Started with Meteor.js JavaScript Framework - Second Edition Learn to develop powerful web applications in minutes with Meteor

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781785285547
Length 138 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image