diff --git a/examples/sendE2E/xxdk.js b/examples/sendE2E/xxdk.js index c31048163a486ea8726abfbfad74b832b9e2f273..69b910955fb6daaa46544b5b25a359a3ac9d5548 100644 --- a/examples/sendE2E/xxdk.js +++ b/examples/sendE2E/xxdk.js @@ -120,7 +120,7 @@ async function SendE2e(htmlConsole, stopNetworkFollowerBtn, ndf, // Wait for network to become healthy htmlConsole.log("Waiting for network to be healthy") - net.WaitForNetwork(25000).then( + await net.WaitForNetwork(25000).then( () => { htmlConsole.log("Network is healthy") }, @@ -138,6 +138,8 @@ async function SendE2e(htmlConsole, stopNetworkFollowerBtn, ndf, let listener = { Hear: function (item) { htmlConsole.log("Listener heard: " + dec.decode(item)) + const message = JSON.parse(dec.decode(item)) + htmlConsole.log("Listener message: " + atob(message)) }, Name: function () { return "Listener";