Server Sent Events implementation
To Run the server:
make run
One should see following in console output:
____ __
/ __/___/ / ___
/ _// __/ _ \/ _ \
/___/\__/_//_/\___/ v3.3.10-dev
High performance, minimalist Go web framework
https://echo.labstack.com
____________________________________O/_______
O\
⇨ http server started on [::]:1323
Then go to http://localhost:1323/static/index.html
One should see following:
TODO
- allow multiple client connections (it is the only one connection currently)
- must have subscribers storage
- add/remove subscribers
- remove subscriber on disconnect
- graceful start/stop
- minimalistic public interface (require only necessary data, such as request.Context().Done() channel, http.ResponseWriter)
- add tests and benchmarks