helia
    Preparing search index...

    Interface HeliaEvents<H>

    interface HeliaEvents<H extends Helia = Helia> {
        start: CustomEvent<H>;
        stop: CustomEvent<H>;
    }

    Type Parameters

    Index
    start: CustomEvent<H>

    This event notifies listeners that the node has started

    helia.addEventListener('start', (event) => {
    console.info(event.detail.libp2p.isStarted()) // true
    })
    stop: CustomEvent<H>

    This event notifies listeners that the node has stopped

    helia.addEventListener('stop', (event) => {
    console.info(event.detail.libp2p.isStarted()) // false
    })