Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

9 lines (8 sloc) 0.256 kB
<script src="/socket.io/socket.io.js"></script>
<script>
var socket = io.connect('http://localhost:8080');
socket.on('news', function (data) {
document.write(JSON.stringify(data));
socket.emit('my other event', { my: 'data' });
});
</script>
Jump to Line
Something went wrong with that request. Please try again.