improve config to test different environments easily

This commit is contained in:
DieMyst
2021-11-09 16:14:48 +03:00
parent 90d353c9c0
commit 4139e06ae9
4 changed files with 42 additions and 15 deletions

View File

@ -1,6 +1,8 @@
import { Fluence } from '@fluencelabs/fluence';
import { viaArr, viaOpt, viaStream, registerCustomId } from '../compiled/examples/via';
import { relays } from '../config';
import { config } from '../config';
const relays = config.relays
export async function viaCall(): Promise<string[][]> {
const relayPeerId = Fluence.getPeer().getStatus().relayPeerId;