isP2PTopicName static method

bool isP2PTopicName(
  1. String topicName
)

Figure out if the topic name belongs to a p2p topic

Implementation

static bool isP2PTopicName(String topicName) {
  return Tools.topicType(topicName) == 'p2p';
}