UNPKG

@fnlb-project/stanza

Version:

Modern XMPP in the browser, with a JSON API

41 lines (40 loc) 1.2 kB
// ==================================================================== // XEP-0280: Message Carbons // -------------------------------------------------------------------- // Source: https://xmpp.org/extensions/xep-0280.html // Version: 0.12.0 (2017-02-16) // ==================================================================== import { addAlias } from '../jxt'; import { NS_CARBONS_2, NS_FORWARD_0 } from '../Namespaces'; const Protocol = [ addAlias(NS_FORWARD_0, 'forwarded', ['message.carbon.forward']), { element: 'enable', namespace: NS_CARBONS_2, path: 'iq.carbons', type: 'enable', typeField: 'action' }, { element: 'disable', namespace: NS_CARBONS_2, path: 'iq.carbons', type: 'disable', typeField: 'action' }, { element: 'sent', namespace: NS_CARBONS_2, path: 'message.carbon', type: 'sent', typeField: 'type' }, { element: 'received', namespace: NS_CARBONS_2, path: 'message.carbon', type: 'received', typeField: 'type' } ]; export default Protocol;