Skip to content

Instantly share code, notes, and snippets.

@kenpratt
Created July 19, 2013 22:27
Show Gist options
  • Save kenpratt/6042788 to your computer and use it in GitHub Desktop.
Save kenpratt/6042788 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: Tahoma, Geneva, sans-serif;
}
div {
display: inline;
}
</style>
<script>
var host = "localhost";
console.log("connecting to", 'ws://' + host + ':8088');
var ws = new WebSocket('ws://' + host + ':8088');
ws.onmessage = function (event) {
console.log(event.data);
};
</script>
</head>
<body>
see console
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment