addSubscription method
Adds a new subscription to the collection of subscriptions.
Implementation
void addSubscription(String topic) {
subscriptions.add(topic);
}
Adds a new subscription to the collection of subscriptions.
void addSubscription(String topic) {
subscriptions.add(topic);
}