title: Does this Socket.IO code create a blocked connection?
body: <p>The general rule in writing Node.js code is that all code should be non-blocking and communicate via events. I would like to know if this code written using the Socket.IO library for Node.js create a blocked connection, or does it follow the general Node.js rules?</p>
  
  <pre><code>sio.sockets.on('connection', function (socket) {
    socket.on('message', function (msg) {
      console.log("Received message"+message);
    });
  
    socket.on('cookie', function (msg) {
      console.log("Cookie Received");
      console.log(msg);
    });
  
    this.send('hello');
  
  
    socket.on('disconnect', function (){
      console.log('Disconnected');
    });
  });
  </code></pre>
  
  <p>Would be grateful for any help.</p>