implemented Client::writingImMsg() and Client::writingChatMsg()