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,040 points
26 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 65,810 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,620 points
36 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
1,591 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
• 65,810 points

edited Jun 28, 2018 by Omkar 187 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.