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

    Class WireMessage

    Atomic application message exchanged by every A11 transport.

    It batches independent node fragments and action calls to reduce transport overhead. Ordering belongs to each fragment's node sequence, not to the WireMessage or transport. An otherwise empty message with headers is also used for lifecycle metadata such as session completion.

    Index
    actions: ActionMessage[]

    Action calls carried by this message.

    headers: ByteMap

    Message-scoped binary headers.

    nodeFragments: NodeFragment[]

    Node data carried by this message.

    VERSION: 1

    Current MessagePack/JSON wire schema version.

    • get approxBytes(): number

      Approximate encoded field and payload size.

      Returns number

    • get isHalfClose(): boolean

      Whether this carries only headers and can serve as a lifecycle marker.

      Returns boolean

    • Convert the message to its language-neutral JSON field map.

      Returns StatusOr<Record<string, unknown>>

    • Encode the current concatenated MessagePack wire record.

      Returns StatusOr<Uint8Array<ArrayBufferLike>>