1
0
mirror of https://github.com/fluencelabs/js-libp2p synced 2025-03-24 11:30:51 +00:00
js-libp2p/test/utils/base-options.browser.js
Jacob Heun f77ce39484 refactor: circuit relay to async ()
* refactor: add dialing over relay support

* chore: fix lint

* fix: dont clear listeners on close

* fix: if dial errors already have codes, just rethrow them

* fix: clear the registrar when libp2p stops

* fix: improve connection maintenance with circuit

* chore: correct feedback

* test: use chai as promised

* test(fix): reset multiaddrs on dial test
2020-01-24 14:40:40 +01:00

22 lines
361 B
JavaScript

'use strict'
const Transport = require('libp2p-websockets')
const Muxer = require('libp2p-mplex')
const Crypto = require('libp2p-secio')
module.exports = {
modules: {
transport: [Transport],
streamMuxer: [Muxer],
connEncryption: [Crypto]
},
config: {
relay: {
enabled: true,
hop: {
enabled: false
}
}
}
}