title: socket.io client not receiving
body: <p>I am using socket.io in nodejs and I am able to send data from client to server. But when I emit from server, the client does not seem to be receiving this...
  What am i missing ?</p>
  
  <h2>server:</h2>
  
  <pre><code>socket = io.listen(app);
  socket.sockets.on('connection', function(client){ 
  client.on('something-from-client', function(msg){
             console.log(msg);
         //do something.
         client.emit('some-result',{"total":docs.length});
     });
  });
  </code></pre>
  
  <h2>client:</h2>
  
  <pre><code>var socket = io.connect('http://localhost:9999');
  socket.on('some-result', function(data){
      console.log('received from server', data);
  });
  socket.emit("something-from-client",  {"lat":lat, "lng":lng});
  </code></pre>