LearnBoost/socket.io — pull request #846 by mohamedmansour (2012-04-21 22:57:59+00:00)
Title: Fixes server crash when client is refreshing their window when leaving a room.

When a client is refreshing their window while connected, and then leaving a room, it crashes the server since their session id is no longer in the roomClients array.

I am sharing code between leaving rooms explicitly and implicitly. Refreshing the window, the disconnect event gets fired after the user is in the roomClients array.