XMPP::Jingle
Jingle is a high-level helper for XEP-0166 Jingle sessions used by the file-transfer (XEP-0234) and in-band bytestream (XEP-0261) application descriptions. It builds and parses session-initiate / session-accept stanzas for a single content offer.
jingle = XMPP::Jingle.new(client) offer = jingle.build_offer("peer@example.org", "abc-123", name: "report.pdf", size: 2048_i64) jingle.send_offer(offer)
See: https://xmpp.org/extensions/xep-0166.html https://xmpp.org/extensions/xep-0234.html https://xmpp.org/extensions/xep-0261.html
Constructors
Instance methods
build_accept builds a session-accept IQ acknowledging a received offer.
build_offer builds a session-initiate IQ offering a single file-transfer content. When ibb_block_size is greater than zero an In-Band Bytestream description is added alongside, negotiating a stream over XEP-0047.
build_terminate builds a session-terminate IQ to end a session.
parse extracts a Jingle stanza from an IQ response payload.
send_offer sends a session-initiate IQ and returns the negotiated content descriptions carried in the response, if any.