UNPKG

@fnlb-project/stanza

Version:

Modern XMPP in the browser, with a JSON API

28 lines (27 loc) 1.21 kB
// ==================================================================== // RFC 3921: Extensible Messaging and Presence Protocol (XMPP): Core // -------------------------------------------------------------------- // Source: https://tools.ietf.org/html/rfc3921 // // Additional: // -------------------------------------------------------------------- // draft-cridland-xmpp-session-01: Here Lies Extensible Messaging and // Presence Protocol (XMPP) Session Establishment // ------------------------------------------------------------------- // Source: https://tools.ietf.org/html/draft-cridland-xmpp-session-01 // ==================================================================== import { childBoolean } from '../jxt'; import { NS_SESSION } from '../Namespaces'; const Protocol = { aliases: ['features.legacySession', 'iq.legacySession'], element: 'session', fields: { // draft-cridland-xmpp-session-01 // // The <optional /> child is not yet standardized, but is // still widely deployed to reduce client start times. optional: childBoolean(null, 'optional') }, namespace: NS_SESSION }; export default Protocol;