Emitted when a connection is established or lost.
waku.addEventListener(WakuEvent.Connection, (event) => { console.log(event.detail); // true if connected, false if disconnected Copy
waku.addEventListener(WakuEvent.Connection, (event) => { console.log(event.detail); // true if connected, false if disconnected
Emitted when the health status changes.
waku.addEventListener(WakuEvent.Health, (event) => { console.log(event.detail); // 'Unhealthy', 'MinimallyHealthy', or 'SufficientlyHealthy' Copy
waku.addEventListener(WakuEvent.Health, (event) => { console.log(event.detail); // 'Unhealthy', 'MinimallyHealthy', or 'SufficientlyHealthy'
Emitted when a connection is established or lost.