subscriberCount method

int subscriberCount(
  1. DwLiveChannel channel
)

How many open connections are subscribed to channel.

Implementation

int subscriberCount(DwLiveChannel channel) => openConnections
    .where((c) => c.subscriptions.contains(channel.wireName))
    .length;