fix: createEncoder is used from the node, not from root import (#259)

This commit is contained in:
fryorcraken 2025-12-01 15:32:08 +11:00 committed by GitHub
parent c7fd46d82c
commit 0d25208562
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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.
:::
:::