feat(relay-js): use createPrivacyNode

This commit is contained in:
fryorcraken.eth 2022-09-15 16:30:54 +10:00
parent a5c1eef9f7
commit 596ec23a9c
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
WakuMessage
} from 'https://unpkg.com/js-waku@0.27.0/bundle/index.js';
import {
createWaku
createPrivacyNode
} from 'https://unpkg.com/js-waku@0.27.0/bundle/lib/create_waku.js'
import {
waitForRemotePeer
@ -60,7 +60,7 @@
// We are currently working on migrating this method to DNS Discovery.
//
// https://js-waku.wakuconnect.dev/classes/waku.Waku.html#create
const waku = await createWaku({defaultBootstrap: true});
const waku = await createPrivacyNode({defaultBootstrap: true});
await waku.start();
// Had a hook to process all incoming messages on a specified content topic.