Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
watch-my-terminal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
files testing/showing socket.io asynchiness
[watch-my-terminal.git]
/
index.html
1
<script src="/socket.io/socket.io.js"></script>
2
<script>
3
var socket = io.connect('http://localhost');
4
socket.on('news', function (data) {
5
console.log(data);
6
socket.emit('my other event', { my: 'data' });
7
socket.emit('jason', { is: 'large and in charge' });
8
});
9
</script>