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`: Choose a [content topic](/learn/concepts/content-topics) for your application and create a message `encoder` and `decoder`:
```js ```js
import { createEncoder, createDecoder } from "@waku/sdk";
// Choose a content topic // Choose a content topic
const ct = "/my-app/1/messages/proto"; const ct = "/my-app/1/messages/proto";