mirror of
https://github.com/status-im/js-waku-examples.git
synced 2025-01-12 06:54:27 +00:00
move to default bootstrap
This commit is contained in:
parent
5bee034de8
commit
38a7407355
@ -54,11 +54,9 @@ async function initWakuContext({
|
|||||||
.add(new protobuf.Field("nick", 2, "string"))
|
.add(new protobuf.Field("nick", 2, "string"))
|
||||||
.add(new protobuf.Field("text", 3, "bytes"));
|
.add(new protobuf.Field("text", 3, "bytes"));
|
||||||
|
|
||||||
const node = await wakuCreate.createLightNode();
|
const node = await wakuCreate.createLightNode({ defaultBootstrap: true });
|
||||||
|
|
||||||
await node.start();
|
await node.start();
|
||||||
|
|
||||||
await node.dial(multiAddr, protocols);
|
|
||||||
await waitForRemotePeer(node, protocols);
|
await waitForRemotePeer(node, protocols);
|
||||||
|
|
||||||
// Set a filter by using Decoder for a given ContentTopic
|
// Set a filter by using Decoder for a given ContentTopic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user