mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-03-15 19:51:13 +00:00
test(topology): Add log info to topology example (#94)
Add info to log in topology example
This commit is contained in:
parent
758e3191c6
commit
75027b8985
@ -27,15 +27,17 @@ export async function topologyCall(peer1: IFluenceClient, relay1: string, peer2:
|
|||||||
const selfPeerId2 = peer2.getPeerId();
|
const selfPeerId2 = peer2.getPeerId();
|
||||||
|
|
||||||
registerTesto(peer2, {
|
registerTesto(peer2, {
|
||||||
getString: (args0) => {
|
getString: (args0, params) => {
|
||||||
console.log('hello from client2: ' + args0);
|
console.log('hello from client2: ' + args0 +
|
||||||
|
', particle_id: ' + params.particleId);
|
||||||
return 'hello from client2: ' + args0;
|
return 'hello from client2: ' + args0;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
registerLocalPrint({
|
registerLocalPrint(peer1, {
|
||||||
print: (args0) => {
|
print: (args0, params) => {
|
||||||
console.log('print on client1: ' + args0);
|
console.log('print on client1: ' + args0 +
|
||||||
|
', particle_id: ' + params.particleId);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user