Socket.io listen to a socket on the client
abemassry
0 Likes0 Commentsjavascriptvar socket = io.connect('http://example.com'); socket.on('list_update', function(data) { console.log("update client with: " + data); });
var socket = io.connect('http://example.com'); socket.on('list_update', function(data) { console.log("update client with: " + data); });