Leaf
    Preparing search index...

    Class EphemeralStoreWasm<T>

    Type Parameters

    Index

    Constructors

    • Creates a new EphemeralStore instance.

      The timeout parameter specifies the duration in milliseconds. A state of a peer is considered outdated, if the last update of the state of the peer is older than the timeout.

      Type Parameters

      Parameters

      • timeout: number

      Returns EphemeralStoreWasm<T>

    Methods

    • Parameters

      • data: Uint8Array

      Returns void

    • Parameters

      • key: string

      Returns void

    • Parameters

      • key: string

      Returns Uint8Array

    • Returns Uint8Array

    • Returns void

    • Parameters

      • key: string

      Returns undefined | T

    • Parameters

      • key: string

      Returns any

    • Returns Record<string, T>

    • Returns any

    • If the state is empty.

      Returns boolean

    • Returns string[]

    • Returns any

    • Returns void

    • Parameters

      • key: string
      • value: T

      Returns void

    • Parameters

      • key: string
      • value: any

      Returns void

    • Parameters

      Returns () => void