Skip to content

Instantly share code, notes, and snippets.

@i0n
Created September 21, 2010 04:36
Show Gist options
  • Save i0n/589201 to your computer and use it in GitHub Desktop.
Save i0n/589201 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ClarkParker Node experiment</title>
<link rel="stylesheet" href="css/application.css" type="text/css">
</head>
<body>
<h1>YOOOhoooo</h1>
<script src="http://cdn.socket.io/stable/socket.io.js"></script>
<script>WEB_SOCKET_SWF_LOCATION = 'socket.io/lib/vendor/web-socket-js/WebSocketMainInsecure.swf';</script>
<script>
// io.setPath("http://cdn.socket.io/stable/")
io.setPath("socket.io/")
var socket = new io.Socket('clarkparker.local', {'port':8080});
socket.connect();
socket.on('connect', function(){
alert("Hello!");
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment