mirror of https://github.com/waku-org/js-waku.git
Merge pull request #181 from status-im/new-chat-topic
Update chat content topic to new testnet value
This commit is contained in:
commit
ed25f823e2
|
@ -25,6 +25,7 @@
|
||||||
"floodsub",
|
"floodsub",
|
||||||
"globby",
|
"globby",
|
||||||
"gossipsub",
|
"gossipsub",
|
||||||
|
"huilong",
|
||||||
"iasked",
|
"iasked",
|
||||||
"ihave",
|
"ihave",
|
||||||
"ihaves",
|
"ihaves",
|
||||||
|
|
|
@ -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).
|
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:
|
Send a message on the waku relay network:
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ import TCP from 'libp2p-tcp';
|
||||||
import { multiaddr, Multiaddr } from 'multiaddr';
|
import { multiaddr, Multiaddr } from 'multiaddr';
|
||||||
import PeerId from 'peer-id';
|
import PeerId from 'peer-id';
|
||||||
|
|
||||||
const ChatContentTopic = 'dingpu';
|
const ChatContentTopic = '/waku/2/huilong/proto';
|
||||||
|
|
||||||
export default async function startChat(): Promise<void> {
|
export default async function startChat(): Promise<void> {
|
||||||
let opts = processArguments();
|
let opts = processArguments();
|
||||||
|
|
|
@ -44,7 +44,7 @@ const themes = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const ChatContentTopic = 'dingpu';
|
export const ChatContentTopic = '/waku/2/huilong/proto';
|
||||||
|
|
||||||
async function retrieveStoreMessages(
|
async function retrieveStoreMessages(
|
||||||
waku: Waku,
|
waku: Waku,
|
||||||
|
|
Loading…
Reference in New Issue