test(topology): Add log info to topology example (#94)

Add info to log in topology example
This commit is contained in:
InversionSpaces 2023-06-20 16:48:29 +02:00 committed by GitHub
parent 758e3191c6
commit 75027b8985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
},
});