Hello cockpit-devel,

I have a project, a cockpit plugin - cockpit-ovirt written in ReactJS.
In the project, I need to run a script that will run for a long time (~20-30 minutes) that will be executed after an event has occurred (let's say a button click).
This script outputs a stream of data and I would like to get the data in cockpit and print it to the screen during the time the script is executed.

What is the recommended way to do it using cockpit API ?

I saw the raw channel documentation, but found no examples / usage that I can use.

Please help,
Ido Rosenzwig