Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit b16115c

Browse files
hisenb3rgdaviddias
authored andcommitted
docs: fix typos in webRTC code snippet (#943)
1 parent 07228a0 commit b16115c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ To add WebRTC support in a IPFS node instance, do:
352352
```JavaScript
353353
const wrtc = require('wrtc') // or require('electron-webrtc')()
354354
const WStar = require('libp2p-webrtc-star')
355-
const wstar = WStar({ wrtc: wrtc })
355+
const wstar = new WStar({ wrtc: wrtc })
356356

357357
const node = new IPFS({
358358
repo: 'your-repo-path',
@@ -368,7 +368,7 @@ const node = new IPFS({
368368
},
369369
libp2p: {
370370
modules: {
371-
transport: [wstar]
371+
transport: [wstar],
372372
discovery: [wstar.discovery]
373373
}
374374
}

0 commit comments

Comments
 (0)