I’m trying to use js-ipfs programmatically, from Node.js, to share files between two nodes (processes) on the same machine only via Websockets using a rendezvous server running on localhost. In my case I also don’t want the nodes to listen on any ports and only make the connections via the rendezvous server to simulate the final set up where the nodes will be inaccessible from each other. I’ve read through the readme files but am confused as to the necessary config for the config.Bootstrap array setting as well as the Addresses.Swarm setting.
In the rendezvous tests it refers to an address of the form “/ip4/127.0.0.1/tcp/9090/ws/p2p-websocket-star/ipfs/”. Is the id here the peer id of the connecting node? So each process will supply a different ID generated using create() from the peer-id package?
Is this address what I put for the bootstrap node or Addresses.Swarm? If I run the rendezvous server on localhost what do I put for both settings?
Thanks for any help!