Skip to content

Instantly share code, notes, and snippets.

@pblca
Last active August 29, 2015 14:11
Show Gist options
  • Save pblca/d6bf4f66938ea04e4a7f to your computer and use it in GitHub Desktop.
Save pblca/d6bf4f66938ea04e4a7f to your computer and use it in GitHub Desktop.
Quick Start tutorials for Data Sync
home.on.ready(function(){
syncDoor();
syncLight();
syncMusic();
});
home.on.change(function(ref){
syncDoor();
syncLight();
syncMusic();
});
var home = PUBNUB_demo.sync("home");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment