Socket.io listen to a socket on the client

abemassry        
0 Likes   0 Comments  javascript

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