following the socket io tutorial http://socket.io/get-started/chat/