Skip to content

Commit

Permalink
chore: update to latest RC (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
weboko authored Apr 9, 2024
1 parent 2316eaa commit f60c456
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/light-js/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ <h2>Store</h2>
createDecoder,
utf8ToBytes,
bytesToUtf8,
} from "https://unpkg.com/@waku/[email protected].20/bundle/index.js";
} from "https://unpkg.com/@waku/[email protected].24-070b625.0/bundle/index.js";
import {
enrTree,
DnsNodeDiscovery,
} from "https://unpkg.com/@waku/dns-[email protected].16/bundle/index.js";
import { messageHash } from "https://unpkg.com/@waku/[email protected].8/bundle/index.js";
} from "https://unpkg.com/@waku/[email protected].2-070b625.0/bundle/index.js";
import { messageHash } from "https://unpkg.com/@waku/[email protected].12-070b625.0/bundle/index.js";

const peerIdDiv = document.getElementById("peer-id");
const remotePeerIdDiv = document.getElementById("remote-peer-id");
Expand Down Expand Up @@ -121,7 +121,7 @@ <h2>Store</h2>
} catch (e) {
console.log("Failed to find a peer", e);
remoteMultiAddrDiv.value =
"/dns4/node-01.ac-cn-hongkong-c.wakuv2.test.statusim.net/tcp/8000/wss/p2p/16Uiu2HAkvWiyFsgRhuJEb9JfjYxEkoHLgnUQmr1N5mKWnYjxYRVm";
"/dns4/node-01.do-ams3.waku.test.statusim.net/tcp/8000/wss/p2p/16Uiu2HAkykgaECHswi3YKJ5dMLbq2kPVCo89fcyTd38UcQD6ej5W";
}

statusDiv.innerHTML = "<p>Creating Waku node.</p>";
Expand Down Expand Up @@ -149,7 +149,7 @@ <h2>Store</h2>
};

// Refreshes list of connected peers each time a new one is detected
node.store.addLibp2pEventListener("peer:connect", async (event) => {
node.store.protocol.addLibp2pEventListener("peer:connect", async (event) => {
const peerId = event.detail;
console.log(`Peer connected with peer id: ${peerId}`);
// Wait half a second after receiving event for peer to show up in peer store
Expand Down

0 comments on commit f60c456

Please sign in to comment.