| Safe Haskell | None |
|---|
Network.Wai.EventSource.EventStream
Description
Internal module, usually you don't need to use it.
- data ServerEvent
- = ServerEvent { }
- | CommentEvent { }
- | RetryEvent {
- eventRetry :: Int
- | CloseEvent
- eventToBuilder :: ServerEvent -> Maybe Builder
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.
Constructors
| ServerEvent | |
| CommentEvent | |
Fields | |
| RetryEvent | |
Fields
| |
| CloseEvent | |
eventToBuilder :: ServerEvent -> Maybe BuilderSource
Converts a ServerEvent to its wire representation as specified by the
text/event-stream content type.