2021-09-08 13:00:24 +03:00
|
|
|
import { FluencePeer } from '@fluencelabs/fluence';
|
|
|
|
import { doStuff, registerTestS } from '../compiled/examples/complex';
|
2021-04-14 17:23:42 +03:00
|
|
|
|
2021-09-08 13:00:24 +03:00
|
|
|
export async function complexCall() {
|
|
|
|
const relayPeerId = FluencePeer.default.connectionInfo.connectedRelay;
|
|
|
|
const selfPeerId = FluencePeer.default.connectionInfo.selfPeerId;
|
2021-05-04 18:49:59 +03:00
|
|
|
|
2021-09-08 13:00:24 +03:00
|
|
|
registerTestS({
|
|
|
|
t: (arg0) => {
|
|
|
|
return arg0;
|
|
|
|
},
|
|
|
|
multiline: (a, b, c) => {
|
|
|
|
return b;
|
|
|
|
},
|
|
|
|
});
|
2021-05-04 18:49:59 +03:00
|
|
|
|
2021-09-08 13:00:24 +03:00
|
|
|
return await doStuff(relayPeerId, selfPeerId, true, true, ['1', '2'], ['3', '4'], 'some str');
|
2021-04-15 12:45:18 +03:00
|
|
|
}
|