minion-wai-extra-0.1.0.0: Minion wrappers for wai-extra
Safe HaskellSafe-Inferred
LanguageHaskell2010

Web.Minion.Response.ServerEvent

Synopsis

Documentation

newtype EventSource a Source #

Constructors

EventSource (IO a) 

Instances

Instances details
CanRespond (EventSource a :: Type) Source # 
Instance details

Defined in Web.Minion.Response.ServerEvent

Methods

canRespond :: [ByteString] -> Bool #

(Monad m, ToServerEvent a) => ToResponse m (EventSource a) Source # 
Instance details

Defined in Web.Minion.Response.ServerEvent

class ToServerEvent a where Source #

Instances

Instances details
ToServerEvent ServerEvent Source # 
Instance details

Defined in Web.Minion.Response.ServerEvent

data ServerEvent #

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.

Instances

Instances details
ToServerEvent ServerEvent Source # 
Instance details

Defined in Web.Minion.Response.ServerEvent