chore: update websockets (#806)

* chore: update websockets
This commit is contained in:
Vasco Santos
2020-11-24 14:39:22 +01:00
committed by Vasco Santos
parent 4448de8432
commit 4ebcdb085c
5 changed files with 68 additions and 7 deletions

View File

@ -1,9 +1,12 @@
'use strict'
const Transport = require('libp2p-websockets')
const filters = require('libp2p-websockets/src/filters')
const Muxer = require('libp2p-mplex')
const { NOISE: Crypto } = require('libp2p-noise')
const transportKey = Transport.prototype[Symbol.toStringTag]
module.exports = {
modules: {
transport: [Transport],
@ -16,6 +19,11 @@ module.exports = {
hop: {
enabled: false
}
},
transport: {
[transportKey]: {
filter: filters.all
}
}
}
}