xmpp-httpx - v0.11.0
    Preparing search index...

    Class ChunkedSender

    The chunkedBase64 mechanism (XEP-0332 §6.4): after the IQ carrying , the body arrives in separate stanzas holding <chunk xmlns='urn:xmpp:http' streamId nr last?>base64. nr is 0-based; chunks may arrive out of order and carry no ack mechanism.

    Index
    • Parameters

      • session: XmppSession
      • options: { chunkSize: number; from?: string; streamId: string; to: string }
        • chunkSize: number

          Decoded bytes per chunk.

        • Optionalfrom?: string

          Explicit sender JID — required when sending from a component.

        • streamId: string
        • to: string

      Returns ChunkedSender

    • Sends the whole body as chunk messages. Pacing comes from awaiting each session.send() (socket backpressure) — the protocol itself has no acks.

      Parameters

      • body: Uint8Array<ArrayBufferLike> | ReadableStream<Uint8Array<ArrayBufferLike>>
      • Optionaloptions: { signal?: AbortSignal }

      Returns Promise<void>