Mercurial > libervia-backend
view doc/libervia-cli/pubsub_node.rst @ 4240:79c8a70e1813
backend, frontend: prepare remote control:
This is a series of changes necessary to prepare the implementation of remote control
feature:
- XEP-0166: add a `priority` attribute to `ApplicationData`: this is needed when several
applications are working in a same session, to know which one must be handled first.
Will be used to make Remote Control have precedence over Call content.
- XEP-0166: `_call_plugins` is now async and is not used with `DeferredList` anymore: the
benefit to have methods called in parallels is very low, and it cause a lot of trouble
as we can't predict order. Methods are now called sequentially so workflow can be
predicted.
- XEP-0167: fix `senders` XMPP attribute <=> SDP mapping
- XEP-0234: preflight acceptance key is now `pre-accepted` instead of `file-accepted`, so
the same key can be used with other jingle applications.
- XEP-0167, XEP-0343: move some method to XEP-0167
- XEP-0353: use new `priority` feature to call preflight methods of applications according
to it.
- frontend (webrtc): refactor the sources/sink handling with a more flexible mechanism
based on Pydantic models. It is now possible to have has many Data Channel as necessary,
to have them in addition to A/V streams, to specify manually GStreamer sources and
sinks, etc.
- frontend (webrtc): rework of the pipeline to reduce latency.
- frontend: new `portal_desktop` method. Screenshare portal handling has been moved there,
and RemoteDesktop portal has been added.
- frontend (webrtc): fix `extract_ufrag_pwd` method.
rel 436
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 11 May 2024 13:52:41 +0200 |
parents | 524856bd7b19 |
children |
line wrap: on
line source
.. _libervia-cli_pubsub_node: ==================================== pubsub/node: PubSub nodes management ==================================== ``node`` is a subcommands grouping all PubSub commands related to node management. For details on ``pubsub`` command itself, refer to :ref:`libervia-cli_pubsub`. info ==== Get settings of the node. Use ``-k KEYS, --key KEYS`` to select data to print. examples -------- Get informations on our personal microblog node:: $ li pubsub node info -n urn:xmpp:microblog:0 Only print ``access_model`` and ``publish_model``:: $ li pubsub node info -n urn:xmpp:microblog:0 -k access_model -k publish_model .. _libervia-cli_pubsub_node_create: create ====== Create a node. Node configuration can be specified using ``-f KEY VALUE, --field KEY VALUE`` where ``KEY`` is a pubsub option. By default the ``pubsub#`` prefix will be appended, as it is used with standard options (see `XEP-0060`_ for more details); to change this behaviour, use the ``-F, --full-prefix`` flag. .. _XEP-0060: https://xmpp.org/extensions/xep-0060.html example -------- Create a node called ``notes`` with a ``whitelist`` access model (so only you and people you may authorize later can access it):: $ li pubsub node create -n notes purge ===== Remove all items from a node (but don't delete the node). A confirmation is requested by default, you can override this behaviour by using ``-f, --force`` option. example ------- Remove all items from a blog comments node (in other words, removing all comments while letting the node so people can add new comments):: $ li pubsub node purge -n "urn:xmpp:microblog:0:comments/123-456-789" delete ====== Delete a node (note that this will delete definitively all items that where published to this node). A confirmation is requested by default, you can override this behaviour by using ``-f, --force`` option. example ------- Delete the ``temporary_notes`` node:: $ li pubsub node delete -n temporary_notes set === Update a node configuration. Configuration options are specified using ``-f KEY VALUE, --field KEY VALUE`` argument where ``KEY`` is a PubSub option. If ``KEY`` doesn't start with ``pubsub#`` prefix, it is added automatically, except if ``-F, --full-prefix`` argument is used (in which case the ``KEY`` is used as specified. example ------- Make the ``public_notes`` node accessible to the world:: $ li pubsub node set -n public_notes -f access_model open import ====== import a raw XML containing items to create in the node. The path to the XML file is used as positional argument. The XML file must contain full `<item>` element for each item to import. The output of ``pubsub get`` can be used directly. If you want to change publisher of one or more items (i.e. if you want to use an other ``jid`` than the jid of the profile as publisher), you must use the ``--admin`` arguments. This needs a PubSub service supporting this feature (and you must of course be an administrator of this service). The new publisher must be allowed to publish to the node. example ------- import a node backup which has previously been saved using ``li blog get -M -1 -n some_node > some_node_backup.xml``:: $ li pubsub node import -n some_node ~/some_node_backup.xml .. note:: If your node is big, -M 1 option is not adapted as it will get all items at once and may be blocked by your server stanza size limit. The possibility to use RSM to retrieve all items by pages is planned in a future version. affiliations ============ Subcommands for node affiliations management. Please check :ref:`libervia-cli_pubsub_node_affiliations`. subscriptions ============= Subcommands for node subscriptions management. Please check :ref:`libervia-cli_pubsub_node_subscriptions`.