HTML and CSS Reference
In-Depth Information
this.sendCorrect(tweeter,guess,correct);
if(this.lettersRemaining == 0) {
this.newWord();
} else {
this.sendGameUpdate();
}
} else {
this.guessesRemaining~DH;
this.sendIncorrect(tweeter,guess);
if(this.guessesRemaining > 0) {
this.sendGameUpdate();
} else {
setTimeout(function() { self.newWord(); }, 2000);
}
}
}
} catch(e) {
console.log("Error:" + e.toString());
}
};
this.connect = function() {
client.stream('user',
{ track:accountName ,replies:'all' },
function(stream) {
stream.on('data', function (data) {
setTimeout(function() {
self.handleGuess(data);
},1);
});
stream.on('end', function (response) {
self.connect();
});
stream.on('error', function (response) {
console.log("Error");
});
stream.on('destroy', function (response) {
self.connect();
});
});
};
this.newWord();
this.connect();
Search WWH ::




Custom Search