Skip to content

Instantly share code, notes, and snippets.

@gmemstr
Created May 19, 2016 22:49
Show Gist options
  • Save gmemstr/0f30fd06676b9d3d20743c72d3d250e9 to your computer and use it in GitHub Desktop.
Save gmemstr/0f30fd06676b9d3d20743c72d3d250e9 to your computer and use it in GitHub Desktop.
setInterval(function() {
// Probably more effecient way of doing this
fetch('http://nodemc.space:3350/v1/server/log',{
body: {
'apikey':apikey
}
})
.then((response) => response.text())
.then((responseText) => {
$("#console").val(responseText);
});
}, 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment