chore: update light-js (#100)

This commit is contained in:
Sasha 2024-10-21 09:58:41 +02:00 committed by GitHub
parent 0643f41aa2
commit 49f3a436d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,18 +71,17 @@
<script type="module"> <script type="module">
import { import {
createLightNode, createLightNode,
waitForRemotePeer,
createEncoder, createEncoder,
createDecoder, createDecoder,
utf8ToBytes, utf8ToBytes,
bytesToUtf8, bytesToUtf8,
} from "https://unpkg.com/@waku/sdk@0.0.25/bundle/index.js"; } from "https://unpkg.com/@waku/sdk@0.0.29/bundle/index.js";
import { import {
enrTree, enrTree,
DnsNodeDiscovery, DnsNodeDiscovery,
wakuDnsDiscovery, wakuDnsDiscovery,
} from "https://unpkg.com/@waku/discovery@0.0.2/bundle/index.js"; } from "https://unpkg.com/@waku/discovery@0.0.6/bundle/index.js";
import { messageHash } from "https://unpkg.com/@waku/message-hash@0.1.13/bundle/index.js"; import { messageHash } from "https://unpkg.com/@waku/message-hash@0.1.17/bundle/index.js";
const peerIdDiv = document.getElementById("peer-id"); const peerIdDiv = document.getElementById("peer-id");
const remotePeerIdDiv = document.getElementById("remote-peer-id"); const remotePeerIdDiv = document.getElementById("remote-peer-id");
@ -127,8 +126,10 @@
statusDiv.innerHTML = "<p>Creating Waku node.</p>"; statusDiv.innerHTML = "<p>Creating Waku node.</p>";
const node = await createLightNode({ const node = await createLightNode({
contentTopics: [ContentTopic], networkConfig: {
defaultBootstrap: true, contentTopics: [ContentTopic],
},
defaultBootstrap: false,
}); });
statusDiv.innerHTML = "<p>Starting Waku node.</p>"; statusDiv.innerHTML = "<p>Starting Waku node.</p>";