Skip to content

Instantly share code, notes, and snippets.

@ToeJamson
Created December 9, 2014 22:15
Show Gist options
  • Save ToeJamson/2b272420a830d328a3d2 to your computer and use it in GitHub Desktop.
Save ToeJamson/2b272420a830d328a3d2 to your computer and use it in GitHub Desktop.
Shyam Mongo DB Blog
var pubnub = PUBNUB.init({
publish_key: '<your-publish-key>',
subscribe_key: '<your-subscribe-key>'
});
var updatePrice = function(msg) {
}
pubnub.subscribe({
channel: 'stockdata',
message: updatePrice
});
var privateChannel = PUBNUB.uuid();
var updateChart = function(msg) {
}
pubnub.subscribe({
channel: updateChart ,
message: updatePrice
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment