PATH:
usr
/
lib
/
node_modules
/
forever
/
node_modules
/
flatiron
/
examples
/
socket.io
<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>
[-] server.js
[edit]
[-] index.html
[edit]
[+]
..