salarkhan/socket-typeracer — pull request #12 by salarkhan (2014-05-16 06:34:56+00:00)
Title: Waiting Room

so, this project kinda fell by the wayside so I decided to pick it back up

this branch implements a waiting room for players before the game starts
as players connect & disconnect, it updates everybody's DOM by doing the following
* on connection, server emits to all clients a hash containing an array of all clients && the connected client's info
* client iterates through the all clients array and does 3 things