mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-18 11:41:21 +00:00
feat: address manager
This commit is contained in:
16
test/addresses/utils.js
Normal file
16
test/addresses/utils.js
Normal file
@ -0,0 +1,16 @@
|
||||
'use strict'
|
||||
|
||||
const Transport1 = require('libp2p-tcp')
|
||||
const Transport2 = require('libp2p-websockets')
|
||||
const mergeOptions = require('merge-options')
|
||||
const baseOptions = require('../utils/base-options')
|
||||
|
||||
module.exports.baseOptions = baseOptions
|
||||
|
||||
const AddressesOptions = mergeOptions(baseOptions, {
|
||||
modules: {
|
||||
transport: [Transport1, Transport2]
|
||||
}
|
||||
})
|
||||
|
||||
module.exports.AddressesOptions = AddressesOptions
|
Reference in New Issue
Block a user