mirror of
https://github.com/waku-org/docs.waku.org.git
synced 2025-02-20 16:58:22 +00:00
update packages versions
This commit is contained in:
parent
0b45ae46e8
commit
8137a5129a
@ -94,7 +94,7 @@ const textInput = document.getElementById("textInput")
|
||||
Create and start a Waku Node:
|
||||
|
||||
```js
|
||||
import {createLightNode} from "https://unpkg.com/@waku/create@0.0.6/bundle/index.js"
|
||||
import {createLightNode} from "https://unpkg.com/@waku/create@0.0.9/bundle/index.js"
|
||||
|
||||
const wakuNode = await createLightNode({defaultBootstrap: true})
|
||||
await wakuNode.start()
|
||||
@ -112,7 +112,7 @@ Your Waku node needs to connect to a remote node in order to access the network.
|
||||
To wait for this, use the `waitForRemotePeer` function:
|
||||
|
||||
```js
|
||||
import * as waku from "https://unpkg.com/@waku/core@0.0.10/bundle/index.js"
|
||||
import * as waku from "https://unpkg.com/@waku/core@0.0.13/bundle/index.js"
|
||||
|
||||
await waku.waitForRemotePeer(wakuNode)
|
||||
```
|
||||
@ -169,7 +169,7 @@ We will store messages as a `utf-8` string.
|
||||
Listen to messages using the decoder and add them to the `messages` div upon reception:
|
||||
|
||||
```ts
|
||||
import * as utils from "https://unpkg.com/@waku/utils@0.0.10/bundle/index.js"
|
||||
import * as utils from "https://unpkg.com/@waku/utils@0.0.3/bundle/index.js"
|
||||
|
||||
wakuNode.filter.subscribe([decoder], (message) => {
|
||||
const str = utils.bytesToUtf8(message.payload)
|
||||
|
Loading…
x
Reference in New Issue
Block a user