App::screenorama - Application output to websocket stream
This program allow you to pipe STDOUT and STDERR from a program over a websocket.
The data transmitted over the websocket connection is JSON in each frame:
Comes after each time the program emit data. NOTE: There's no guaranty that it will be emitted on newline.
The exit value of the application. The websocket will be closed after you see this.
If something goes wrong with the application or other operating system errors.
# let others connect to the running program $ screenorama --listen http://*:5000 --single -- 'while sleep 1; do echo "hey!"; done' # pipe the output on incoming request $ screenorama -- ls -l
Connect a browser to http://localhost:5000 or ws://localhost:5000 to see the output.
$str = $self->conduit; $self = $self->conduit($str);
Defaults to "pty". Can also be set to "pipe".
$str = $self->program; $self = $self->program($str);
Path, name of to the application to run or the whole command.
$array_ref = $self->program_args; $self = $self->program_args([qw( --option )]);
Arguments to "program".
$bool = $self->single; $self = $self->single($bool);
Set this to true if you want all incoming requests to connect to one stream. False means start "program" on each request.
Allow standard input from websocket to "program".
Used to start the web server.
Jan Henning Thorsen -