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.223 kB
<script src="js/socket.io2.js"></script>
<script>
var socket = io.connect('localhost:8080');
socket.on('news', function (data) {
console.log(data);
socket.emit('my other event', { my: 'data' });
});
</script>
Jump to Line
Something went wrong with that request. Please try again.