hldb / welo

peer-to-peer, collaborative states using Merkle-CRDTs
Other
32 stars 2 forks source link

add pubsub peer monitor #23

Closed tabcat closed 1 year ago

tabcat commented 1 year ago

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.

tabcat commented 1 year ago

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.