Need help setting up Kad DHT using nodejs #2503
Unanswered
muzahidul-islam-sbu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to set up a Kad DHT for local peers (will move to remote peers later), but am having trouble with the DHT replicating the keys and values.
The goal is that I want to start a peer node in one process, and another peer node in a different process. Then I want to put a key value pair in node 1 (for example key = 'hello', value = 'world), and I then want to retrieve this value in node 2.
Currently, I can put and get to the DHT fine in a single node, and the nodes connect to each other using mdns, but I can't copy the DHT key/values between two nodes. Here is my code:
Beta Was this translation helpful? Give feedback.
All reactions