title: Unable to receive events in SOCKET.IO client
body: <p>I am new to socket.io and i am trying out the examples mentioned on their site. I am going good with it but problem occurs when i try to use io.emit on the server side and try to receive on client side.</p>
  
  <p>Here is my server code</p>
  
  <pre><code>var io=require("socket.io").listen(8888);
  io.set('log level',1);
  io.on('connection',function(socket){ 
  socket.emit('hi');
  console.log("Connected");
  });
  </code></pre>
  
  <p>And my client's code</p>
  
  <pre><code>&lt;script src="http://localhost:8888/socket.io/socket.io.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  var socket=io.connect("http://localhost:8888");
  socket.set('log_level',1);
  socket.on('hi',function(){
  console.log('received');
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>The problem is i don't see the message 'received' in the console! The answer may be trivial but i tried experimenting but failed everytime. Please guide....</p>
  
  <p>I am on ubuntu firefox. node version: 0.8.7</p>