I was struggling to manage the namespace client disconnection in the application that we are working.
I realised that when the client disconnect from a namespace, after if I tried to connect again to the same namespace, it didn't receive the messages from the server, at least if the client reconnected the socket to the same namespace some seconds after he had disconnected it.
After debugging the code for awhile, I found this fix.
This pull request corresponds to another pull request to socket.io that I've done: #1296
Added new flag in namespace to manage from socket the namespace disco…
…nnections (not the whole socket) and later reconnections to the same namespace