What I’m trying to do: piggyback on the namesys pubsub system to react to new ipfs name publish.
I’ve got two peers PeerA and PeerB with both pubsub and namesys-pubsub enabled:
ipfs daemon --enable-pubsub-experiment --enable-namesys-pubsub
I’m successfully doing this on PeerA:
ipfs add -r public/rngadam # last row has CID
ipfs name publish --key=$USER $CID
and I can list the content on PeerB.
What I’d like is also have PeerB reacts to the changes on my public key publishing.
I see that:
ipfs name pubsub subs
returns a list of subscriptions of type /ipns/$PUBLIC_KEY
but if I try to on PeerB to have:
ipfs pubsub sub /ipns/$PUBLIC_KEY
I don’'t get any events.
Is it doable? I’d rather not have to create a separate pubsub channel with artificial events on top of something that’s already happening behind the scenes.