title: socket.io not connecting for client
body: <p>It is simple chat app using node.js and socket.io. This app work fine in my local computer but do not work when I upload it to the server: Please <a href="http://chatting-20469.onmodulus.net/amipakna.html" rel="nofollow">look at my code on remote server and the problem</a>.</p>
  
  <p>Here is the code snippet of client:</p>
  
  <pre><code>&lt;script type="application/javascript"&gt;
      var socket = io.connect();
  
      eventHandler(socket);
  
      function eventHandler(socket) { 
          socket.on('connect', function(){
              socket.emit('adduser', prompt("What's your name?"));
          });
          socket.on('error', function () {
              console.log("Connection error"); //It works after a few second with error
          });
      }
  
      $(document).ready(function(){
         .....
      });
  &lt;/script&gt;
  </code></pre>