helia
    Preparing search index...

    Interface HeliaEvents<T>

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

    Type Parameters

    Index

    Properties

    Properties

    This event notifies listeners that the node has started

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

    This event notifies listeners that the node has stopped

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