So here’s what I want to do:
- Connect Two nodes so that they can talk to each other - Which i can probably achieve by doing ipfs.swarm.connect()
- Make the requested node to also subscribe to the same topic that the requesting node is subscribed to. - This is the thing i don’t understand how I could achieve in the initial handshake
One way I thought of doing this was to make all nodes listen on a common topic where they exchange topic names - but obviously this isn’t safe.
Other was to manually enter the topic name on each node but this isn’t efficient.
Is there any other way that i could accomplish this?