Practicing NodeJS by making a chat client