Skip to content

Instantly share code, notes, and snippets.

@pblca
Created October 29, 2014 17:11
Show Gist options
  • Save pblca/0c4bea7c52013b5672b8 to your computer and use it in GitHub Desktop.
Save pblca/0c4bea7c52013b5672b8 to your computer and use it in GitHub Desktop.
pubnub.subscribe({
channel: channel,
// Add presence
presence: function(m){
document.getElementById('occupancy').textContent = m.occupancy;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment