Update chat content topic to new testnet value

Resolves #180
This commit is contained in:
Franck Royer 2021-05-28 14:32:05 +10:00
parent 71f27d4411
commit ca74f7f87a
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
4 changed files with 4 additions and 3 deletions

View File

@ -25,6 +25,7 @@
"floodsub",
"globby",
"gossipsub",
"huilong",
"iasked",
"ihave",
"ihaves",

View File

@ -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:

View File

@ -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<void> {
let opts = processArguments();

View File

@ -44,7 +44,7 @@ const themes = {
},
};
export const ChatContentTopic = 'dingpu';
export const ChatContentTopic = '/waku/2/huilong/proto';
async function retrieveStoreMessages(
waku: Waku,