add client class for server. add ChatClient.