title: Socket.io firing multiple events
body: <p>Socket.io seems to be firing multiple messages exponentially, here is an example I'm running that causes the issue.</p>
  
  <p>Client side:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript" src="../../js/jquery191.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://192.168.1.2:8887/socket.io/socket.io.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;button&gt;Click Me!&lt;/button&gt;
  
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
  var socket = io.connect('http://192.168.1.2:8887');
  
  $("button").click(function(){
  
      console.log("Emitting test_parent");
      socket.emit('test_parent');
  
      socket.on('test_parent_server', function(data){
          console.log("Handling test_parent_server");
  
  
          console.log("Emitting test_child");
          socket.emit('test_child');
  
          socket.on('test_child_server', function(ing){
              console.log("Handling test_child_server");
  
          });
  
      });
  });
  });
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Server side:</p>
  
  <pre><code>socket.on("test_parent", function(){
      socket.emit("test_parent_server", { data : " " });
  });
  
  socket.on("test_child", function(){
      socket.emit("test_child_server", { data : " " });
  });
  </code></pre>
  
  <p>For some reason every time the button is clicked the events get fired multiple times, increasing exponentially. I've tried to pinpoint what the heck is going on but no luck debugging it or searching online.</p>