Skip to content

N1cOs/simple-sse-fan-out

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Feed

Simple HTTP service, which fan-out every incoming http message to all opened SSE sessions.

API

GET /api/v1/feed

Opens SSE session.

PUT /api/v1/feed

Sends body of a request to all opened SSE sessions. Body is sent as is without any processing.

Run

Builds feed image:

make build

Starts the http server on address 0.0.0.0:8000:

make run

You can change bind address by specifying variables SERVER_HOST and SERVER_PORT:

make run SERVER_HOST=192.168.1.1 SERVER_PORT=4242

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published