title: Socket.io not emitting/receiving events while using namespaces
body: <p>I have the following code written in coffeescript that makes use of socket.io and node.js in the server side</p>
  
  <p><strong>Server</strong></p>
  
  <pre><code>io.of("/room").authorization (handshakeData, callback) -&gt;
      #Check if authorized
      callback(null,true)
  .on 'connection',  (socket) -&gt;
      console.log "connected!"
  
      socket.emit 'newMessage', {msg: "Hello!!", type: 1} 
  
      socket.on 'sendMessage', (data) -&gt;
          @io.sockets.in("/room").emit 'newMessage', {msg: "New Message!!", type: 0} 
  </code></pre>
  
  <p><strong>Client</strong></p>
  
  <pre><code>socket = io.connect '/'
  
  socket.of("/room")
      .on 'connect_failed',  (reason) -&gt;
      console.log 'unable to connect to namespace', reason
  .on 'connect', -&gt;
      console.log 'sucessfully established a connection with the namespace'
  
  socket.on 'newMessage', (message) -&gt;
      console.log "Message received: #{message.msg}"
  </code></pre>
  
  <p>My problem is that after I started using namespaces the communication between server and client has stopped working. I didn't find any working example similar to this so I might be doing something wrong</p>