add socket chatting part,but with unsolved exception