fix: createEncoder is used from the node, not from root import

This commit is contained in:
fryorcraken 2025-12-01 12:08:32 +11:00
parent c7fd46d82c
commit 296bbe46d6
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -50,8 +50,6 @@ When the `defaultBootstrap` parameter is set to `true`, your node will be bootst
Choose a [content topic](/learn/concepts/content-topics) for your application and create a message `encoder` and `decoder`:
```js
import { createEncoder, createDecoder } from "@waku/sdk";
// Choose a content topic
const ct = "/my-app/1/messages/proto";
@ -195,4 +193,4 @@ reliableChannel.addEventListener("message-acknowledged", (event) => {
:::tip Congratulations!
You have successfully sent and received messages over the Waku Network using our reliable protocols such as Scalable Data Sync (SDS) and P2P Reliability.
:::
:::