subscribeToTopic method

Future<void> subscribeToTopic(
  1. String topic
)

Subscribe to topic in background.

topic must match the following regular expression: [a-zA-Z0-9-_.~%]{1,900}.

Implementation

Future<void> subscribeToTopic(String topic) {
  _assertTopicName(topic);
  return _delegate.subscribeToTopic(topic);
}