diff --git a/tutorial.html b/tutorial.html index ebee3b1..a56c2ee 100644 --- a/tutorial.html +++ b/tutorial.html @@ -76,7 +76,7 @@
var cosmo = new Cosmopolite();
 cosmo.sendMessage('testsubject', 'test message');
  • Keep the debug page (from above) up and subscribed (to testsubject) in one browser tab
  • -
  • Load your test page in an incognito window (right click/control-click, Open Link in Incognito Window)
  • +
  • Load your test page
  • The debug page should show the message from the test page
  • You've written code that uses cosmopolite!
  • @@ -87,7 +87,8 @@ cosmo.sendMessage('testsubject', 'test message');
  • Subject: a topic that clients that publish and subscribe to, e.g. "books"
  • Message: a single chunk of data transmitted to a single subject, e.g. "I love books!"
  • Key: an optional string associated with a message, that can be used to look up the last message with a given key, e.g. "title" (key) = "A place to talk about books" (message)
  • -
  • Client: an instance of Cosmopolite() in a browser
  • +
  • Instance: a single instantiation of Cosmopolite() in a browser (destroyed on page close)
  • +
  • Client: a persistent identifier for a browser (consistent across browser restarts)
  • Profile: a collection of clients that all speak as the same user (and so should appear the same to subscribers)
  • @@ -102,7 +103,7 @@ cosmo.sendMessage('testsubject', 'test message'); }; var cosmo = new Cosmopolite(callbacks); cosmo.subscribe('testsubject'); -
  • Load (or re-load) the test page (still in an incognito window)
  • +
  • Load (or re-load) the test page
  • Use the debug interface to send a message to testsubject
  • Your test page should generate an alert popup