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,050 points
51 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
• 67,380 points

selected Jun 29, 2018 by slayer

Related Questions In Blockchain

+1 vote
1 answer
0 votes
1 answer
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
• 27,640 points
67 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 23 in Blockchain by Kiran
2,822 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
• 67,380 points

edited Jun 28, 2018 by Omkar 244 views