Skip to content
/ ssed Public

Send STDOUT of any app to SSE clients. Like Websocketd, but for SSE

Notifications You must be signed in to change notification settings

mesuutt/ssed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

You can use ssed for pipe STDOUT of any command-line program to SSE clients.

How to install ssed?

$ go get github.com/mesuutt/ssed

Usage

You can pipe STDOUT of any command-line program to ssed for send output of the program to the SSE clients:

$ ./printEverySecond.sh | ssed
Reading from STDIN
Listening on  localhost:3000

You can use ssed with named pipes too:

cat <> myfifo | ssed &
echo 'text' > myfifo

Also you can send messages to SSE clients with a prompt with starting ssed with -p argument:

$ ssed -p
Listening on  localhost:3000
(1 clients)-> hello
Sent message: hello
(1 clients)-> how are you?
Sent message: how are you?
$ ssed -h
Usage of ssed:
  -v    Verbose debug messages
  -l string
        Listening address and port (default "localhost:3000")
  -p    Show prompt for message which send to clients

About

Send STDOUT of any app to SSE clients. Like Websocketd, but for SSE

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages