xmpp_p2p
    Preparing search index...

    Function sendIqError

    • Sends an IQ error response to the peer if a stream is still available.

      Parameters

      • ctx: XmppRouterContext

        Router context.

      • peerId: string

        Remote peer identifier.

      • element: Element

        Original incoming IQ stanza.

      • condition: string

        XMPP stanza error condition.

      • type: "cancel" | "modify" | "auth" | "wait" = 'cancel'

        Error type to emit.

      • Optionaltext: string

        Optional human-readable error detail.

      Returns Promise<void>

      Nothing.