- data ServerEvent
- = ServerEvent { }
- | CommentEvent { }
- | RetryEvent {
- eventRetry :: Int
- | CloseEvent
- eventSourceApp :: Chan ServerEvent -> Application
Documentation
data ServerEvent Source
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.
eventSourceApp :: Chan ServerEvent -> ApplicationSource
Make a new WAI EventSource application reading events from the given channel.