Skip to content

Instantly share code, notes, and snippets.

@dansteingart
Created January 19, 2012 02:29
Show Gist options
  • Save dansteingart/1637299 to your computer and use it in GitHub Desktop.
Save dansteingart/1637299 to your computer and use it in GitHub Desktop.
client side logger thing
<html>
<head>
<LINK REL=StyleSheet HREF="/flot/style.css" TYPE="text/css" MEDIA=screen>
<style>
</style>
</head>
<body>
<script src="/socket.io/socket.io.js"></script>
HI
</div>
</body>
<script>
var socket = io.connect('/');
//Socket Stuff
socket.on('new_data', function (data) {
console.log(data);
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment