JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
files testing/showing socket.io asynchiness
[watch-my-terminal.git] / index.html
diff --git a/index.html b/index.html
new file mode 100644 (file)
index 0000000..e55e8c0
--- /dev/null
@@ -0,0 +1,9 @@
+<script src="/socket.io/socket.io.js"></script>
+<script>
+  var socket = io.connect('http://localhost');
+  socket.on('news', function (data) {
+    console.log(data);
+    socket.emit('my other event', { my: 'data' });
+    socket.emit('jason', { is: 'large and in charge' });
+  });
+</script>