Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit 5253d23

Browse files
committed
fix: use wrtc instead
1 parent 05dde5b commit 5253d23

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
"chai": "^4.0.2",
4343
"cids": "^0.5.0",
4444
"dirty-chai": "^2.0.0",
45-
"electron-webrtc": "^0.3.0",
4645
"lodash.times": "^4.3.2",
4746
"pre-commit": "^1.2.2",
48-
"pull-stream": "^3.6.0"
47+
"pull-stream": "^3.6.0",
48+
"wrtc": "0.0.62"
4949
},
5050
"dependencies": {
5151
"libp2p": "~0.9.1",

test/tcp+websockets+webrtc-star.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const expect = chai.expect
77
const parallel = require('async/parallel')
88
const signalling = require('libp2p-webrtc-star/src/sig-server')
99
const WStar = require('libp2p-webrtc-star')
10-
const electronWebRTC = require('electron-webrtc')
10+
const wrtc = require('wrtc')
1111
const utils = require('./utils')
1212
const createNode = utils.createNode
1313
const echo = utils.echo
@@ -30,7 +30,7 @@ describe('TCP + WebSockets + WebRTCStar', () => {
3030
})
3131
},
3232
(cb) => {
33-
const wstar = new WStar({wrtc: electronWebRTC()})
33+
const wstar = new WStar({wrtc: wrtc})
3434

3535
createNode([
3636
'/ip4/0.0.0.0/tcp/0',
@@ -66,7 +66,7 @@ describe('TCP + WebSockets + WebRTCStar', () => {
6666
}),
6767

6868
(cb) => {
69-
const wstar = new WStar({wrtc: electronWebRTC()})
69+
const wstar = new WStar({wrtc: wrtc})
7070

7171
createNode([
7272
'/libp2p-webrtc-star/ip4/127.0.0.1/tcp/24642/ws'

0 commit comments

Comments
 (0)