xmpp_p2p
    Preparing search index...

    Function sendIqRequest

    • Sends an IQ request and awaits the response or timeout.

      Parameters

      • ctx: XmppRouterContext

        Router context.

      • target: string | Multiaddr

        Target peer address or JID.

      • stanza: Element

        IQ stanza to transmit.

      • timeoutMs: number = 10000

        Response timeout in milliseconds.

      Returns Promise<Element>

      The matching IQ response stanza.