isTopicOnline method

bool isTopicOnline(
  1. String topicName
)

Check if given topic is online

Implementation

bool isTopicOnline(String topicName) {
  var me = getMeTopic();
  var cont = me.getContact(topicName);
  return cont != null && cont.online!;
}