Skip to content

Instantly share code, notes, and snippets.

@christiannwamba
Created March 5, 2018 20:23
Show Gist options
  • Save christiannwamba/e1905194bd3eb468589d264702201657 to your computer and use it in GitHub Desktop.
Save christiannwamba/e1905194bd3eb468589d264702201657 to your computer and use it in GitHub Desktop.
// ./server.js
let i = 0;
setInterval(() => {
const GOOG = stockData[1]['Trades'][i];
pusher.trigger('trade', 'stock', GOOG);
i++;
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment