Skip to content

Instantly share code, notes, and snippets.

@codyyc

codyyc/client Secret

Created July 11, 2012 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codyyc/37757dedf13dde75fc28 to your computer and use it in GitHub Desktop.
Save codyyc/37757dedf13dde75fc28 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="http://pace-test.jit.su/socket.io/socket.io.js"></script>
<script>
var socket = io.connect('http://pace.jit.su');
socket.on('news', function (data) {
console.log(data);
socket.emit('my other event', { my: 'data' });
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment