Skip to content

Commit cb0e358

Browse files
committed
docs: update baseclass definition
1 parent 592dfeb commit cb0e358

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,17 @@ class Node extends libp2p {
124124
// The libp2p modules for this libp2p bundle
125125
modules: {
126126
transport: [
127-
new TCP(),
128-
new WS()
127+
TCP,
128+
WS
129129
],
130130
streamMuxer: [
131-
spdy
131+
SPDY
132132
],
133-
cryptoComm: [
134-
secio
133+
connEncryption: [
134+
SECIO
135135
]
136136
peerDiscovery: [
137-
new MulticastDNS(peerInfo)
137+
MulticastDNS
138138
],
139139
peerRouting: {}, // Currently both peerRouting and contentRouting are patched through the DHT,
140140
contentRouting: {} // this will change once we factor that into two modules, for now do the following line:

0 commit comments

Comments
 (0)