Skip to content

Commit b674bcc

Browse files
poria-catdaviddias
authored andcommitted
chane three links~😉 (#115)
1 parent 4ae8e43 commit b674bcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/transports/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A more complete definition of what is a transport can be found on the [interface
88

99
## 1. Creating a libp2p Bundle with TCP
1010

11-
When using libp2p, you always want to create your own libp2p Bundle, that is, pick your set of modules and create your network stack with the properties you need. In this example, we will create a bundle with TCP. You can find the complete solution on the file [1.js](/1.js).
11+
When using libp2p, you always want to create your own libp2p Bundle, that is, pick your set of modules and create your network stack with the properties you need. In this example, we will create a bundle with TCP. You can find the complete solution on the file [1.js](./1.js).
1212

1313
You will need 4 deps total, so go ahead and install all of them with:
1414

@@ -90,7 +90,7 @@ That `QmW2cKTakTYqbQkUzBTEGXgWYFj1YEPeUndE1YWs6CBzDQ` is the PeerId that was cre
9090

9191
## 2. Dialing from one node to another node
9292

93-
Now that we have our bundle, let's create two nodes and make them dial to each other! You can find the complete solution at [2.js](/2.js).
93+
Now that we have our bundle, let's create two nodes and make them dial to each other! You can find the complete solution at [2.js](./2.js).
9494

9595
For this step, we will need one more dependency.
9696

@@ -168,7 +168,7 @@ Hello p2p world!
168168

169169
Next, we want to be available in multiple transports to increase our chances of having common transports in the network. A simple scenario, a node running in the browser only has access to HTTP, WebSockets and WebRTC since the browser doesn't let you open any other kind of transport, for this node to dial to some other node, that other node needs to share a common transport.
170170

171-
What we are going to do in this step is to create 3 nodes, one with TCP, another with TCP+WebSockets and another one with just WebSockets. The full solution can be found on [3.js](3.js).
171+
What we are going to do in this step is to create 3 nodes, one with TCP, another with TCP+WebSockets and another one with just WebSockets. The full solution can be found on [3.js](./3.js).
172172

173173
In this example, we will need to also install `libp2p-websockets`, go ahead and install:
174174

0 commit comments

Comments
 (0)