Hi all,
I've uploaded a middleware that offers support for push streams*.
These are the modified repos:
http://github.com/davide/ewgihttp://github.com/davide/ewgi_examples
*While "regular streams"/thunks ( f/1 → {} | {data,F/1}) are pooled recursively by the
webserver trying to get data to send to the client, push streams generate
data and push it directly to the socket.
A big thanks to Steve Vinoski for providing the building blocks for this in Yaws (which ended up being replicated in ewgi_mochiweb and ewgi_inets :)).
Cheers,
:Davide