From ca74f7f87a4dcb73a1acf6c1f134ca34d8d5247c Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 28 May 2021 14:32:05 +1000 Subject: [PATCH] Update chat content topic to new testnet value Resolves #180 --- .cspell.json | 1 + README.md | 2 +- examples/cli-chat/src/chat.ts | 2 +- examples/web-chat/src/App.tsx | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.cspell.json b/.cspell.json index cf05fa86da..699916421d 100644 --- a/.cspell.json +++ b/.cspell.json @@ -25,6 +25,7 @@ "floodsub", "globby", "gossipsub", + "huilong", "iasked", "ihave", "ihaves", diff --git a/README.md b/README.md index 895f5e3f8e..1b426eead9 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ waku.relay.addObserver((msg) => { ``` Note that the guidelines regarding content topic format are yet to be defined, see [vacp2p/rfc#364](https://github.com/vacp2p/rfc/issues/364). -The examples chat apps currently use content topic `"dingpu"`. +The examples chat apps currently use content topic `"/waku/2/huilong/proto"`. Send a message on the waku relay network: diff --git a/examples/cli-chat/src/chat.ts b/examples/cli-chat/src/chat.ts index 853f364e93..c075a097c0 100644 --- a/examples/cli-chat/src/chat.ts +++ b/examples/cli-chat/src/chat.ts @@ -15,7 +15,7 @@ import TCP from 'libp2p-tcp'; import { multiaddr, Multiaddr } from 'multiaddr'; import PeerId from 'peer-id'; -const ChatContentTopic = 'dingpu'; +const ChatContentTopic = '/waku/2/huilong/proto'; export default async function startChat(): Promise { let opts = processArguments(); diff --git a/examples/web-chat/src/App.tsx b/examples/web-chat/src/App.tsx index 61072a14b0..3738fa587e 100644 --- a/examples/web-chat/src/App.tsx +++ b/examples/web-chat/src/App.tsx @@ -44,7 +44,7 @@ const themes = { }, }; -export const ChatContentTopic = 'dingpu'; +export const ChatContentTopic = '/waku/2/huilong/proto'; async function retrieveStoreMessages( waku: Waku,