title: Cant store socket as object in an array
body: <p>I am trying to store all connected sockets in an array like `</p>
  
  <pre><code>var basket = {};
  
  io.sockets.on('connection', function (socket) {
    socket.on("register", function(user_profile) {
      basket[user_profile.id] = socket.id;
    });
   socket.on(SEND_INVITE,function(invitation_details){
           var to = basket[invitation_details.invitee];
            io.sockets.socket(to).emit(RECIEVE_INVITE,invitation_details);
      });
  });
  </code></pre>
  
  <p>`</p>
  
  <p>But i dont know whats wrong in the code, only last joined client is getting stored in baskets. Help me please</p>