chore(relay-js): bump @waku/core to 0.0.7
This commit is contained in:
parent
c889e5468d
commit
7cb97ae71c
|
@ -34,12 +34,12 @@
|
||||||
bytesToUtf8,
|
bytesToUtf8,
|
||||||
utf8ToBytes,
|
utf8ToBytes,
|
||||||
} from "https://unpkg.com/@waku/byte-utils@0.0.2/bundle/index.js";
|
} from "https://unpkg.com/@waku/byte-utils@0.0.2/bundle/index.js";
|
||||||
import { createPrivacyNode } from "https://unpkg.com/@waku/create@0.0.4/bundle/index.js";
|
import { createRelayNode } from "https://unpkg.com/@waku/create@0.0.5/bundle/index.js";
|
||||||
import { waitForRemotePeer } from "https://unpkg.com/@waku/core@0.0.6/bundle/lib/wait_for_remote_peer.js";
|
|
||||||
import {
|
import {
|
||||||
DecoderV0,
|
waitForRemotePeer,
|
||||||
EncoderV0,
|
createDecoder,
|
||||||
} from "https://unpkg.com/@waku/core@0.0.6/bundle/lib/waku_message/version_0.js";
|
createEncoder,
|
||||||
|
} from "https://unpkg.com/@waku/core@0.0.7/bundle/index.js";
|
||||||
|
|
||||||
const statusDiv = document.getElementById("status");
|
const statusDiv = document.getElementById("status");
|
||||||
const messagesDiv = document.getElementById("messages");
|
const messagesDiv = document.getElementById("messages");
|
||||||
|
@ -55,8 +55,8 @@
|
||||||
|
|
||||||
// Prepare encoder and decoder, `V0` for clear text messages.
|
// Prepare encoder and decoder, `V0` for clear text messages.
|
||||||
|
|
||||||
const encoder = new EncoderV0(contentTopic);
|
const encoder = createEncoder(contentTopic);
|
||||||
const decoder = new DecoderV0(contentTopic);
|
const decoder = createDecoder(contentTopic);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
statusDiv.innerHTML = "<p>Starting</p>";
|
statusDiv.innerHTML = "<p>Starting</p>";
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
// We are currently working on migrating this method to DNS Discovery.
|
// We are currently working on migrating this method to DNS Discovery.
|
||||||
//
|
//
|
||||||
// https://js.waku.org/functions/lib_create_waku.createPrivacyNode.html
|
// https://js.waku.org/functions/lib_create_waku.createPrivacyNode.html
|
||||||
const waku = await createPrivacyNode({ defaultBootstrap: true });
|
const waku = await createRelayNode({ defaultBootstrap: true });
|
||||||
await waku.start();
|
await waku.start();
|
||||||
|
|
||||||
// Add a hook to process all incoming messages on a specified content topic.
|
// Add a hook to process all incoming messages on a specified content topic.
|
||||||
|
|
Loading…
Reference in New Issue