From 75027b8985f509fc8167e7e15961b2f84738fb4c Mon Sep 17 00:00:00 2001 From: InversionSpaces Date: Tue, 20 Jun 2023 16:48:29 +0200 Subject: [PATCH] test(topology): Add log info to topology example (#94) Add info to log in topology example --- src/examples/topologyCall.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/examples/topologyCall.ts b/src/examples/topologyCall.ts index 46b80da..4feaa78 100644 --- a/src/examples/topologyCall.ts +++ b/src/examples/topologyCall.ts @@ -27,15 +27,17 @@ export async function topologyCall(peer1: IFluenceClient, relay1: string, peer2: const selfPeerId2 = peer2.getPeerId(); registerTesto(peer2, { - getString: (args0) => { - console.log('hello from client2: ' + args0); + getString: (args0, params) => { + console.log('hello from client2: ' + args0 + + ', particle_id: ' + params.particleId); return 'hello from client2: ' + args0; }, }); - registerLocalPrint({ - print: (args0) => { - console.log('print on client1: ' + args0); + registerLocalPrint(peer1, { + print: (args0, params) => { + console.log('print on client1: ' + args0 + + ', particle_id: ' + params.particleId); }, });