- data ServerEvent
- eventSourceAppChan :: Chan ServerEvent -> Application
- eventSourceAppSource :: Source (ResourceT IO) ServerEvent -> Application
- eventSourceAppIO :: IO ServerEvent -> Application
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.
Make a new WAI EventSource application reading events from the given channel.
Make a new WAI EventSource application reading events from the given source.