title: Socket.io client not receiving message event
body: <p>My project's skeleton is of express-generator thus used this workaround:<a href="https://stackoverflow.com/questions/24609991/using-socket-io-in-express-4-and-express-generators-bin-www">here</a></p>
  
  <p>SERVER:</p>
  
  <pre><code>io.on('connection', function(socket){
  socket.on('message', function(msg){
    io.emit('message', msg);
  });
  });
  </code></pre>
  
  <p>CLIENT:(src for socket included)</p>
  
  <pre><code>var  socket = io.connect('//localhost:5000');
  
   function op(){
    socket.emit('message', $('input[name=yolo]:checked', '#myForm').val());
   };
  
   socket.on('message', function(msg){
       console.log("oo");
       $("input[value=msg]").attr('disabled',true);
       alert($("input[value=msg]").val());
   });
  </code></pre>
  
  <p>FORM</p>
  
  <pre><code>form(action='' id="myForm")
  ///form inputs
  input(type="submit" value="book" onclick="op()") 
  </code></pre>
  
  <ol>
  <li><p>Connection is made on both sides verified.</p></li>
  <li><p>Message is received by the server but it isn't emitting it for the client side socket.on('message'... to trigger.</p></li>
  <li>Tested every step only the last socket.on('message'.. not triggering.</li>
  </ol>