n0-computer / dumbpipe

https://dumbpipe.dev
Other
107 stars 9 forks source link

Add broadcast mode #3

Open Frando opened 9 months ago

Frando commented 9 months ago

...so that a node can accept any number of connections, and will pipe STDIN live to all incoming connections.

Maybe this mode would not support receiving data on the node started with dumbpipe listen because this would need business logic on what to do with the incoming data.

So e.g. ffmpeg ... | dumbpipe broadcast --> print ticket And then any number of nodes can connect and view/listen to the live broadcast.

rklaehn commented 9 months ago

Not quite sure how this would work. So you want to listen from stdin from the moment of connection (currently it will buffer from the start), and also mix all the stuff that is sent to you to stdout?