implementing chat client communication methods
Message sending is working perfectly