feat(relay-js): use createPrivacyNode
This commit is contained in:
parent
a5c1eef9f7
commit
596ec23a9c
|
@ -30,7 +30,7 @@
|
||||||
WakuMessage
|
WakuMessage
|
||||||
} from 'https://unpkg.com/js-waku@0.27.0/bundle/index.js';
|
} from 'https://unpkg.com/js-waku@0.27.0/bundle/index.js';
|
||||||
import {
|
import {
|
||||||
createWaku
|
createPrivacyNode
|
||||||
} from 'https://unpkg.com/js-waku@0.27.0/bundle/lib/create_waku.js'
|
} from 'https://unpkg.com/js-waku@0.27.0/bundle/lib/create_waku.js'
|
||||||
import {
|
import {
|
||||||
waitForRemotePeer
|
waitForRemotePeer
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
// We are currently working on migrating this method to DNS Discovery.
|
// We are currently working on migrating this method to DNS Discovery.
|
||||||
//
|
//
|
||||||
// https://js-waku.wakuconnect.dev/classes/waku.Waku.html#create
|
// 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();
|
await waku.start();
|
||||||
|
|
||||||
// Had a hook to process all incoming messages on a specified content topic.
|
// Had a hook to process all incoming messages on a specified content topic.
|
||||||
|
|
Loading…
Reference in New Issue