The Shared Channel for the Live Replicator needs to be able to see peers joining and leaving. Since this is not provided by the libp2p API directly, pubsub.getSubscribers will need to be polled.
It looks like there is a way to watch events from js-libp2p pubsub with SubscriptionChange PubSubEvents but going to just poll for now and come back later.
The Shared Channel for the Live Replicator needs to be able to see peers joining and leaving. Since this is not provided by the libp2p API directly, pubsub.getSubscribers will need to be polled.