import io from 'socket.io-client'; $(function() { var socket = io(); socket.on('start_run', function(run_index){ }) socket.on('link_start', function(link_id) { $('#current_run').append($('
').text(link_id)); }); });