Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
chore: update websockets to 0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Dec 14, 2020
1 parent f27bc0d commit 3bd703e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"it-drain": "^1.0.0",
"it-last": "^1.0.1",
"libp2p-webrtc-star": "^0.20.0",
"libp2p-websockets": "^0.15.0",
"multihashes": "^3.0.1",
"nanoid": "^3.1.10",
"p-retry": "^4.1.0",
Expand Down
13 changes: 13 additions & 0 deletions test/utils/circuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
const delay = require('delay')
const randomBytes = require('iso-random-stream/src/random')
const concat = require('it-concat')
const WS = require('libp2p-websockets')
const filters = require('libp2p-websockets/src/filters')
const transportKey = WS.prototype[Symbol.toStringTag]

const { expect } = require('./chai')
const daemonFactory = require('./daemon-factory')

Expand All @@ -19,6 +23,15 @@ exports.createProc = addrs => daemonFactory.spawn({
enabled: true
}
}
},
libp2p: {
config: {
transport: {
[transportKey]: {
filter: filters.all
}
}
}
}
}
})
Expand Down

0 comments on commit 3bd703e

Please sign in to comment.