Handling connection of new nodes in Decentralized Chatting application

0 votes
I am trying to develop a chatting application using ipfs protocol along with frameworks like nodejs, expressjs, angularjs and using libp2p to handle nodes.

The nodes that I have created using Libp2p are communicating with each other but I need to mention their IP addresses and TCP ports. But this is like in typical centralized applications.

I do not want my system to keep track of the users, I want the nodes to interact even when a unknown user joins the system and sets up their node. In centralized application, I can handle this by sending signals but I do not want to do it because I want my application to be decentralized.

How can I implement this?
Jun 29, 2018 in Blockchain by slayer
• 29,370 points
926 views

1 answer to this question.

0 votes
Best answer
Libp2p handles discovery and connection of nodes by itself. You do not have to separately implement anything to handle this issue. When the new nodes join the network, you will get a primitive for addressing the process. This process addressing will dial to the process if the process is accessible in the network.

Look to the following examples to understand more about how it works.

https://github.com/libp2p/js-libp2p/tree/master/examples

https://github.com/libp2p/js-libp2p.
answered Jun 29, 2018 by Omkar
• 69,220 points

selected Jun 29, 2018 by slayer
I guess you are answering not the question that was asked. The real question, how can you figure out which nodes to connect to without having to go through the bootstrap list.

Hey, @Dmitryame

After looking at the explanation given above I could see it almost did justice with the question asked. But if you have some other explanation for that please let us know, it may help other users to explain the scenario from different angles possible.

Related Questions In Blockchain

+1 vote
1 answer
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,740 points
1,003 views
+1 vote
1 answer
+2 votes
4 answers

"failed to create new connection context deadline exceeded." error in Hyperledger Fabric

Try remove previous docker containers(have mentioned the ...READ MORE

answered Apr 24, 2019 in Blockchain by Kiran
12,877 views
0 votes
1 answer

In hyperledger, how many number of ordering node can take up a transaction?

There are two types to implement ordering: 1. ...READ MORE

answered Jun 25, 2018 in Blockchain by Omkar
• 69,220 points

edited Jun 28, 2018 by Omkar 1,258 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP