feat(relay-reactjs-chat): use `createPrivacyNode`

This commit is contained in:
fryorcraken.eth 2022-09-15 16:33:50 +10:00
parent 7cae9875d3
commit f701230ad9
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import { WakuMessage } from "js-waku";
import * as React from "react";
import protobuf from "protobufjs";
import { createWaku } from "js-waku/lib/create_waku";
import { createPrivacyNode } from "js-waku/lib/create_waku";
import { waitForRemotePeer } from "js-waku/lib/wait_for_remote_peer";
const ContentTopic = `/relay-reactjs-chat/1/chat/proto`;
@ -23,7 +23,7 @@ function App() {
setWakuStatus("Starting");
(async () => {
const waku = await createWaku({ defaultBootstrap: true });
const waku = await createPrivacyNode({ defaultBootstrap: true });
setWaku(waku);
await waku.start();