/sockd

Access program STDIN and STDOUT via Web-Socket server.

Primary LanguageGo

sockd

Access program STDIN and STDOUT via Web-Socket server.

Alternative

This is still incomplete implementation. Better alternative.

Usage

Get help message

go run main.go -help

Example

Run server with default parameters

go run main.go

Will start server on localhost:8080 and will stream the output of ls command.

Or provide parameters for the server

go run main.go -address="0.0.0.0" -port=8000 -script=pwd

Will start server on 0.0.0.0:8000 and will stream the output of pwd command.