var socket = io.connect('http://example.com'); socket.on('list_update', function(data) { console.log("update client with: " + data); });