Type representing a communication over an event stream. This can be an actual event, a comment, a modification to the retry timer, or a special "close" event indicating the server should close the connection.
Modulewai-extra-3.1.16Haskell2010
Network.Wai.EventSource
A WAI adapter to the HTML5 Server-Sent Events API.
If running through a proxy like Nginx you might need to add the headers:
[ ("X-Accel-Buffering", "no"), ("Cache-Control", "no-cache")]There is a small example using these functions in the example directory.
- 1 type
- 3 values
- Packagewai-extra-3.1.16
- Exports4
- LanguageHaskell2010
- LicenceMIT
- SourceEventSource.hs
Make a new WAI EventSource application reading events from the given channel.
Make a new WAI EventSource application reading events from the given IO action.
Make a new WAI EventSource application with a handler that emits events.