Documentation
    Preparing search index...

    Interface IWakuEvents

    interface IWakuEvents {
        "waku:connection": CustomEvent<boolean>;
        "waku:health": CustomEvent<HealthStatus>;
    }
    Index

    Properties

    "waku:connection": CustomEvent<boolean>

    Emitted when a connection is established or lost.

    waku.addEventListener(WakuEvent.Connection, (event) => {
    console.log(event.detail); // true if connected, false if disconnected
    "waku:health": CustomEvent<HealthStatus>

    Emitted when the health status changes.

    waku.addEventListener(WakuEvent.Health, (event) => {
    console.log(event.detail); // 'Unhealthy', 'MinimallyHealthy', or 'SufficientlyHealthy'