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

    Function stanzaBudgets

    • Derives inline/chunk budgets from a known server stanza-size limit (advertised via XEP-0478 stream limits, or from server config). The defaults assume only the RFC 6120 10 KiB floor; servers commonly allow 128 KiB-1 MiB, and larger budgets mean fewer stanzas per body:

      new HttpxClient(session, { ...stanzaBudgets(262144) }) new HttpxServer(session, { ...stanzaBudgets(262144) })

      Parameters

      • maxStanzaBytes: number

      Returns { inlineBudgetBytes: number; maxChunkSize: number }