Permalink
Browse files

Renaming files for clarity.

  • Loading branch information...
1 parent 0d0d175 commit 6b6a8036e952edb68764e0caa55b12a2ce6c6c0b Jordan Fowler committed Dec 15, 2009
@@ -1,36 +0,0 @@
-<!doctype html>
-<html>
-<head>
- <title>em-websocket-server test</title>
-</head>
-<body>
-
-<h1>em-websocket-server timesync demo</h1>
-<h2 id="time">opening socket</h2>
-
-<script>
- var webSocket = new WebSocket('ws://192.168.0.2:8000/time');
-
- webSocket.onopen = function(event){
- document.getElementById('time').innerHTML = 'waiting for socket';
- webSocket.send("{\"msg\":\"join\"}");
- };
-
- webSocket.onmessage = function(event){
- var object = JSON.parse(event.data);
- console.log(object);
-
- if(object.msg == "turn") {
- //webSocket.send("{\"msg\":\"move\", \"data\":{\"x\":4}}");
- }
-
- document.getElementById('time').innerHTML = object.time;
- };
-
- webSocket.onclose = function(event){
- document.getElementById('time').innerHTML = 'socket closed';
- };
-</script>
-
-</body>
-</html>
File renamed without changes.

0 comments on commit 6b6a803

Please sign in to comment.