mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-21 21:11:34 +00:00
committed by
Vasco Santos
parent
4448de8432
commit
4ebcdb085c
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user