A demo of server-sent events (i.e., EventSource).
Hat tip to athoune/broadcast-event-source for an example of SSE in Go.
Example with cURL:
curl -X POST -H "Content-Type: application/json" http://localhost:8888/update -d '{"text":"Hello from cURL"}'
Example with Go client:
go run client/client.go