Update bootstrap usage with peers (#31)

This commit is contained in:
Franck R 2022-01-31 10:39:20 +11:00 committed by GitHub
parent 02d5ab77d0
commit b8e0400a02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 15 deletions

View File

@ -39,10 +39,12 @@ If you want to bootstrap to your own nodes, you can pass an array of multiaddres
import {Waku} from "js-waku";
const waku = await Waku.create({
bootstrap: [
bootstrap: {
peers: [
"/dns4/node-01.ac-cn-hongkong-c.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAkvWiyFsgRhuJEb9JfjYxEkoHLgnUQmr1N5mKWnYjxYRVm",
"/dns4/node-01.do-ams3.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ",
],
]
},
});
```

View File

@ -53,10 +53,12 @@ If you want to bootstrap to your own nodes, you can pass an array of multiaddres
import {Waku} from "js-waku";
const wakuNode = await Waku.create({
bootstrap: [
bootstrap: {
peers: [
"/dns4/node-01.ac-cn-hongkong-c.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAkvWiyFsgRhuJEb9JfjYxEkoHLgnUQmr1N5mKWnYjxYRVm",
"/dns4/node-01.do-ams3.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ",
],
]
},
});
```

View File

@ -53,10 +53,12 @@ If you want to bootstrap to your own nodes, you can pass an array of multiaddres
import {Waku} from "js-waku";
const waku = await Waku.create({
bootstrap: [
bootstrap: {
peers: [
"/dns4/node-01.ac-cn-hongkong-c.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAkvWiyFsgRhuJEb9JfjYxEkoHLgnUQmr1N5mKWnYjxYRVm",
"/dns4/node-01.do-ams3.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ",
],
]
},
});
```