A11 TypeScript API - v0.7.0
    Preparing search index...

    Class NodeFragment

    One sequenced piece of an AsyncNode's ordered stream.

    id selects the node, seq establishes logical order independently of transport arrival, and continued=false declares this fragment final. Payload is either an inline Chunk or a NodeRef.

    Index
    continued: boolean

    Whether another fragment follows.

    data: Chunk | NodeRef

    Inline chunk or node reference.

    id: string

    Destination node id.

    seq: number | null

    Logical sequence number, or null before assignment.

    • get approxBytes(): number

      Approximate encoded field and payload size.

      Returns number

    • Encode the concatenated MessagePack fragment record.

      Returns StatusOr<Uint8Array<ArrayBufferLike>>