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

Commit

Permalink
fix: use wrtc instead
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Jun 28, 2017
1 parent 05dde5b commit 5253d23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
"chai": "^4.0.2",
"cids": "^0.5.0",
"dirty-chai": "^2.0.0",
"electron-webrtc": "^0.3.0",
"lodash.times": "^4.3.2",
"pre-commit": "^1.2.2",
"pull-stream": "^3.6.0"
"pull-stream": "^3.6.0",
"wrtc": "0.0.62"
},
"dependencies": {
"libp2p": "~0.9.1",
Expand Down
6 changes: 3 additions & 3 deletions test/tcp+websockets+webrtc-star.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const expect = chai.expect
const parallel = require('async/parallel')
const signalling = require('libp2p-webrtc-star/src/sig-server')
const WStar = require('libp2p-webrtc-star')
const electronWebRTC = require('electron-webrtc')
const wrtc = require('wrtc')
const utils = require('./utils')
const createNode = utils.createNode
const echo = utils.echo
Expand All @@ -30,7 +30,7 @@ describe('TCP + WebSockets + WebRTCStar', () => {
})
},
(cb) => {
const wstar = new WStar({wrtc: electronWebRTC()})
const wstar = new WStar({wrtc: wrtc})

createNode([
'/ip4/0.0.0.0/tcp/0',
Expand Down Expand Up @@ -66,7 +66,7 @@ describe('TCP + WebSockets + WebRTCStar', () => {
}),

(cb) => {
const wstar = new WStar({wrtc: electronWebRTC()})
const wstar = new WStar({wrtc: wrtc})

createNode([
'/libp2p-webrtc-star/ip4/127.0.0.1/tcp/24642/ws'
Expand Down

0 comments on commit 5253d23

Please sign in to comment.