mirror of
https://github.com/waku-org/examples.waku.org.git
synced 2025-02-22 10:48:22 +00:00
feat(relay-reactjs-chat): use createPrivacyNode
This commit is contained in:
parent
7cae9875d3
commit
f701230ad9
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user