Created
April 11, 2016 21:16
-
-
Save rrva/ca8809d3dad61f164130de1ea50fd140 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function connectionStatusReceived(status) { | |
if(status !== true) { | |
console.log("Ping got error", error); | |
setTimeout(function() { | |
esClient.ping().then(connectionStatusReceived, | |
connectionStatusReceived); | |
}, 3000); | |
} | |
else { | |
console.log("Ping got success"); | |
} | |
}; | |
esClient.ping().then(connectionStatusReceived, | |
connectionStatusReceived); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment