Skip to content

Instantly share code, notes, and snippets.

@thedaniel
Created February 2, 2012 02:58
Show Gist options
  • Save thedaniel/1721128 to your computer and use it in GitHub Desktop.
Save thedaniel/1721128 to your computer and use it in GitHub Desktop.
doit.js
var doit = function(){
if (clientPublishableChannelData && clientSubscriptionData){
console.log('discovery success! starting server...');
app.listen(3000);
} else {
console.log('waiting for discovery...');
setTimeout(doit, 500);
}
}
doit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment