Replies: 2 comments 2 replies
-
These all do slightly different things:
|
Beta Was this translation helpful? Give feedback.
-
Closing as I think this has been answered. |
Beta Was this translation helpful? Give feedback.
-
I came across two ways of implementing custom protocols in js-libp2p and I'm curious how they compare and when would you chose one over the other.
dialProtocol
andhandle
Creating a topology with the registrar
Using the registrar, you can also register custom protocols, essentially creating a topology, for example:
https://github.com/libp2p/js-libp2p/blob/main/doc/SERVICES.md?plain=1#L302-L315
Beta Was this translation helpful? Give feedback.
All reactions