openChannelIdsTo method
Channel ids currently open to peerKey.
Shrinks as channels are released, unlike openedChannels — which is the
distinction removeInlet exists to make.
Implementation
Set<int> openChannelIdsTo(String peerKey) => {
for (final MapEntry(key: id, value: channel)
in (_links[peerKey]?._channels ?? const <int, _FakeRtcChannel>{})
.entries)
if (!channel._closed) id,
};