Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit aba592f

Browse files
authored
docs: update readme (#149)
resolves #147
1 parent 3a519f7 commit aba592f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@ Clients that need constant connections to bootstrap nodes (e.g. browsers) can se
3535

3636
```JavaScript
3737
import { createLibp2p } from 'libp2p'
38-
import { Bootstrap } from '@libp2p/bootstrap'
39-
import { TCP } from 'libp2p/tcp'
40-
import { Noise } from '@libp2p/noise'
41-
import { Mplex } from '@libp2p/mplex'
38+
import { bootstrap } from '@libp2p/bootstrap'
39+
import { tcp } from 'libp2p/tcp'
40+
import { noise } from '@libp2p/noise'
41+
import { mplex } from '@libp2p/mplex'
4242

4343
let options = {
4444
transports: [
45-
new TCP()
45+
tcp()
4646
],
4747
streamMuxers: [
48-
new Mplex()
48+
mplex()
4949
],
5050
connectionEncryption: [
51-
new Noise()
51+
noise()
5252
],
5353
peerDiscovery: [
54-
new Bootstrap({
54+
bootstrap({
5555
list: [ // a list of bootstrap peer multiaddrs to connect to on node startup
5656
"/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
5757
"/dnsaddr/bootstrap.libp2p.io/ipfs/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN",

0 commit comments

Comments
 (0)