migrate relay-js

This commit is contained in:
Sasha 2023-06-20 01:02:06 +02:00
parent cded4d967e
commit 49979485f1
No known key found for this signature in database

View File

@ -33,16 +33,14 @@
* Recommended payload is protobuf. Using simple utf-8 string for demo purposes only.
*/
import {
bytesToUtf8,
utf8ToBytes,
} from "https://unpkg.com/@waku/utils@0.0.5/bundle/bytes.js";
import { createRelayNode } from "https://unpkg.com/@waku/create@0.0.13/bundle/index.js";
import {
waitForRemotePeer,
createDecoder,
createEncoder,
} from "https://unpkg.com/@waku/core@0.0.17/bundle/index.js";
bytesToUtf8,
utf8ToBytes,
createRelayNode,
} from "https://unpkg.com/@waku/sdk@0.0.16/bundle/index.js";
const statusDiv = document.getElementById("status");
const messagesDiv = document.getElementById("messages");