Create a server that handles periodic POST requests from another service.
Clients can connect to this server and poll for events using Transfer-Encoding: chunked
. Events that are POSTed to the server are returned to the polling clients as individual chunks.
The Node implementation works as expected.
I can't figure out how to get the Go implementation to work correctly. The response is closed after the goroutine declaration finishes. I think this will work if I can figure out how to defer closing the connection, but there's no direct writable interface on the ResponseWriter.