unadvertise method

Future<void> unadvertise()

Stop advertising the topic.

Implementation

Future<void> unadvertise() async {
  if (isAdvertised) {
    // Send the unadvertise request and reset variables.
    await safeSend(Request(
      op: 'unadvertise',
      id: advertiseId,
      topic: name,
    ));
    advertiseId = null;
  }
}