Simple HTTP service, which fan-out every incoming http message to all opened SSE sessions.
Opens SSE session.
Sends body of a request to all opened SSE sessions. Body is sent as is without any processing.
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