Skip to content

Instantly share code, notes, and snippets.

@elizabethsiegle
Last active June 2, 2016 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elizabethsiegle/3ddd6d24d1b84af37dc917bf18facb1a to your computer and use it in GitHub Desktop.
Save elizabethsiegle/3ddd6d24d1b84af37dc917bf18facb1a to your computer and use it in GitHub Desktop.
function getData() {
pubnubTweet.history({
channel: channel,
count: 75,
callback: function(messages) {
pubnubTweet.each(messages[0], processData);
getStreamData();
},
error: function(error) {
console.log(error);
if (error) {
getStreamData();
}
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment