add .gitignore and add a new function : send msg to all client