From: http://socket.io/get-started/chat/