setSubscribed method
Sets what BroadcastChannel.isSubscribed answers for channel, the
fully-qualified name (private-orders, not orders), and emits on its
BroadcastChannel.onSubscriptionChanged when the value changes.
Stands in for the server's subscription_succeeded (true) and a
dropped socket (false). Every channel starts unconfirmed.
Implementation
void setSubscribed(String channel, bool subscribed) {
if ((_confirmed[channel] ?? false) == subscribed) return;
_confirmed[channel] = subscribed;
_confirmationStreams[channel]?.add(subscribed);
}