Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
watch-my-terminal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
puttin' it all together
[watch-my-terminal.git]
/
index.html
diff --git
a/index.html
b/index.html
index
e55e8c0
..
daa26ae
100644
(file)
--- a/
index.html
+++ b/
index.html
@@
-1,9
+1,7
@@
<script src="/socket.io/socket.io.js"></script>
<script>
var socket = io.connect('http://localhost');
<script src="/socket.io/socket.io.js"></script>
<script>
var socket = io.connect('http://localhost');
- socket.on('news', function (data) {
+ socket.on('write', function (data) {
console.log(data);
console.log(data);
- socket.emit('my other event', { my: 'data' });
- socket.emit('jason', { is: 'large and in charge' });
});
</script>
});
</script>