.. _node-browser-output: ``BrowserOutput`` ================= :bdg-primary:`sink` :bdg-secondary-line:`extra: browser-output` Hand the messages of the pipeline over to the web page hosting it. :Node type: ``BrowserOutput`` :Input: ``AudioPayload``, ``ImagePayload``, ``BytesPayload`` or ``ObjectPayload`` :Output: -- :Extra: ``browser-output`` .. code-block:: console $ pip install "juturna-nodes[browser-output]" The node runs only in a Pyodide Worker, with the browser transport of juturna. It encodes each message in the wire format of ``juturna.transport.browser._io`` and posts ``{type: 'output', node, message}`` to the page with the ``postMessage`` of the Worker. Any other payload type is logged and counted as an update failure. How it works ------------ .. include:: browser_output.readme1.inc :parser: myst_parser.sphinx_ Arguments --------- .. include:: browser_output.readme2.inc :parser: myst_parser.sphinx_ Input message ------------- .. include:: browser_output.readme3.inc :parser: myst_parser.sphinx_ Output message -------------- .. include:: browser_output.readme4.inc :parser: myst_parser.sphinx_ License ------- .. include:: browser_output.readme5.inc :parser: myst_parser.sphinx_ Configuration ------------- Default node arguments, as defined in the node ``config.toml`` file. Any of them can be overridden in the node ``configuration`` of a pipeline. .. literalinclude:: ../../../../juturna_nodes/src/juturna/nodes/_browser_output/config.toml :language: toml Pipeline usage -------------- .. code-block:: json { "name": "browser_output", "type": "BrowserOutput", "configuration": {} } Reference --------- .. autoclass:: juturna.nodes._browser_output.browser_output.BrowserOutput :no-index: