resubscribe method

void resubscribe()

Re subscribe. Unsubscribes all confirmed subscriptions and re subscribes them without sending unsubscribe messages to the broker.

Implementation

void resubscribe() {
  for (final subscription in subscriptions.values) {
    _createNewSubscription(
        subscription.topic.rawTopic, subscription.maximumQos);
  }
  subscriptions.clear();
}