You can send the messages topic wise, follow the below path to create the topics
Communication --> Communication --> New Student wall (Chat) --> Click on Class --> Send General Message --> Update the topic details --> Send Message