From 47457d5cfe432b6151f86f780ab3924cc2c09e2b Mon Sep 17 00:00:00 2001 From: Sasha Date: Mon, 17 Apr 2023 20:32:01 +0200 Subject: [PATCH] remove unused, allow emit to self --- examples/relay-js/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/relay-js/index.html b/examples/relay-js/index.html index 5de3f62..caa7853 100644 --- a/examples/relay-js/index.html +++ b/examples/relay-js/index.html @@ -65,7 +65,8 @@ statusDiv.innerHTML = "

Starting

"; // Create and starts a Waku node. - // `default: true` bootstraps by connecting to pre-defined/hardcoded Waku nodes. + // `defaultBootstrap: true` bootstraps by connecting to pre-defined/hardcoded Waku nodes. + // `emitSelf`: emits event of sent message to itself and invokes subscribers by it // We are currently working on migrating this method to DNS Discovery. // // https://js.waku.org/functions/lib_create_waku.createPrivacyNode.html @@ -105,7 +106,7 @@ // waku nodes (peers) and for appropriate handshakes to be done. // // https://js.waku.org/functions/lib_wait_for_remote_peer.waitForRemotePeer.html - await waitForRemotePeer(waku), ["relay"]; + await waitForRemotePeer(waku); // We are now connected to a remote peer, let's define the `sendMessage` // function that sends the text input over Waku Relay, the gossipsub