helia
    Preparing search index...

    Interface AbstractCreateSessionOptions

    interface AbstractCreateSessionOptions {
        cidPeerFilterSize?: number;
        maxProviders?: number;
        minProviders?: number;
        name: string;
        offline?: boolean;
        onProgress?: (evt: ProgressEvent) => void;
        providers?: (PeerId | Multiaddr | Multiaddr[])[];
        signal?: AbortSignal;
    }

    Hierarchy (View Summary)

    Index

    Properties

    cidPeerFilterSize?: number

    A scalable cuckoo filter is used to ensure we do not query the same peer multiple times for the same CID. This setting controls how the initial maximum number of peers that are expected to be in the filter.

    100
    
    maxProviders?: number

    The maximum number of providers for the root CID to be added to a session.

    5
    
    minProviders?: number

    The minimum number of providers for the root CID that are required for successful session creation.

    The session will become usable once this many providers have been discovered, up to maxProviders providers will continue to be added.

    1
    
    name: string
    offline?: boolean

    If true, do not attempt to fetch any missing blocks from the network

    false
    
    onProgress?: (evt: ProgressEvent) => void
    providers?: (PeerId | Multiaddr | Multiaddr[])[]

    An optional list of peers known to host at least the root block of the DAG that will be fetched.

    If this list is omitted, or if the peers cannot supply the root or any child blocks, a findProviders routing query will be run to find peers that can supply the blocks.

    signal?: AbortSignal