mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-06 23:03:10 +00:00
migrate store-react-chat
This commit is contained in:
parent
954416f245
commit
d779f7365d
4575
examples/store-reactjs-chat/package-lock.json
generated
4575
examples/store-reactjs-chat/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -7,9 +7,7 @@
|
|||||||
"@testing-library/jest-dom": "^5.16.5",
|
"@testing-library/jest-dom": "^5.16.5",
|
||||||
"@testing-library/react": "^13.4.0",
|
"@testing-library/react": "^13.4.0",
|
||||||
"@testing-library/user-event": "^14.4.3",
|
"@testing-library/user-event": "^14.4.3",
|
||||||
"@waku/byte-utils": "^0.0.2",
|
"@waku/sdk": "^0.0.16",
|
||||||
"@waku/core": "^0.0.10",
|
|
||||||
"@waku/create": "^0.0.4",
|
|
||||||
"protobufjs": "^7.1.2",
|
"protobufjs": "^7.1.2",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
|
|||||||
@ -1,8 +1,11 @@
|
|||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import protobuf from "protobufjs";
|
import protobuf from "protobufjs";
|
||||||
import { createLightNode } from "@waku/create";
|
import {
|
||||||
import { waitForRemotePeer, createDecoder } from "@waku/core";
|
createLightNode,
|
||||||
import { bytesToUtf8 } from "@waku/byte-utils";
|
waitForRemotePeer,
|
||||||
|
createDecoder,
|
||||||
|
bytesToUtf8,
|
||||||
|
} from "@waku/sdk";
|
||||||
|
|
||||||
const ContentTopic = "/toy-chat/2/huilong/proto";
|
const ContentTopic = "/toy-chat/2/huilong/proto";
|
||||||
const decoder = createDecoder(ContentTopic);
|
const decoder = createDecoder(ContentTopic);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user