(function() {
  var socket = io.connect('http://localhost:3000'); // NOTE: Use real server IP if using mobile devices
  var $body = $('body');
  var $status = $('.status');
  var status = '';

  $body.on('click touchstart', function() {
    status = status === 'on' ? 'off' : 'on';
    socket.emit('ledToggle', status);
  });

  socket.on('message', function(data) {
    $status.text(data);
    $body.removeClass('on off').addClass(data);
  });

  socket.emit('ledStatus');
}());

@@ -38,29 +38,9 @@
 ct('
-http://localhost:3000
+/
 '); 
@@ -68,34 +68,71 @@
 ver 
-IP if using mobile devices
+hostname:port if using devices not directly connected to server
 %0A  v

Update client socket connect url