mirror of
https://github.com/logos-messaging/docs.waku.org.git
synced 2026-01-02 12:53:12 +00:00
prefer strings for event types
This commit is contained in:
parent
09e106aa4a
commit
d8886e02d1
@ -71,7 +71,7 @@ The Waku node will emit `health` events to help you know whether the node is con
|
||||
This can be useful to give feedback to the user, or stop some action (e.g. sending messages) when offline:
|
||||
|
||||
```js
|
||||
import { HealthStatus, WakuEvent } from "@waku/sdk";
|
||||
import { HealthStatus } from "@waku/sdk";
|
||||
|
||||
node.events.addEventListener("waku:health", (event) => {
|
||||
const health = event.detail;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user