Mercurial > libervia-backend
comparison doc/jp/pubsub.rst @ 3100:cea52c9ddfd9
plugin XEP-0060, jp (pubsub/set): publish-options implementation:
- publishing options (XEP-0060 §7.1.5) implementation.
- jp pubsub/set can specify publish-options using `-f` and `-F`
- doc has been updated to explain that
- psItemSend and psItemsSend now use serialisation for "extra"
- publish-options can be specified in extra['publish-options'] with those methods
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 28 Dec 2019 20:02:18 +0100 |
parents | 72583524cfd3 |
children |
comparison
equal
deleted
inserted
replaced
3099:0b6d56a8f7e3 | 3100:cea52c9ddfd9 |
---|---|
14 === | 14 === |
15 | 15 |
16 Publish a pubsub item. | 16 Publish a pubsub item. |
17 | 17 |
18 ``stdin`` is used to get the raw XML of the payload of the item to publish. | 18 ``stdin`` is used to get the raw XML of the payload of the item to publish. |
19 | |
20 ``-f KEY VALUE, --field KEY VALUE`` can be used to specify publish options, i.e. option | |
21 which must be set if the node already exists, or used if the node is to be created, see | |
22 `XEP-0060 §7.1.5`_ for details. | |
23 | |
24 In the same way as for :ref:`jp-pubsub_node_create`, ``-F, --full-prefix`` can be used if | |
25 you need to specify the full option name. | |
26 | |
27 .. _XEP-0060 §7.1.5: https://xmpp.org/extensions/xep-0060.html#publisher-publish-options | |
19 | 28 |
20 example | 29 example |
21 ------- | 30 ------- |
22 | 31 |
23 Create an item with a custom note XML:: | 32 Create an item with a custom note XML:: |