migrate store-react-chat

This commit is contained in:
Sasha 2023-06-22 01:27:19 +02:00
parent 954416f245
commit d779f7365d
No known key found for this signature in database
3 changed files with 3303 additions and 1293 deletions

File diff suppressed because it is too large Load Diff

View File

@ -7,9 +7,7 @@
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@waku/byte-utils": "^0.0.2",
"@waku/core": "^0.0.10",
"@waku/create": "^0.0.4",
"@waku/sdk": "^0.0.16",
"protobufjs": "^7.1.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",

View File

@ -1,8 +1,11 @@
import * as React from "react";
import protobuf from "protobufjs";
import { createLightNode } from "@waku/create";
import { waitForRemotePeer, createDecoder } from "@waku/core";
import { bytesToUtf8 } from "@waku/byte-utils";
import {
createLightNode,
waitForRemotePeer,
createDecoder,
bytesToUtf8,
} from "@waku/sdk";
const ContentTopic = "/toy-chat/2/huilong/proto";
const decoder = createDecoder(ContentTopic);