Save experiments
This commit is contained in:
parent
2e2496cd4c
commit
7254172545
7 changed files with 121 additions and 0 deletions
8
experiments/index.html
Normal file
8
experiments/index.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<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' });
|
||||
});
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue