wai-control-0.1.0.2: Run wai Applications in IO based monads

Safe HaskellNone
LanguageHaskell2010

Network.Wai.Handler.WebSockets.Trans

Contents

Synopsis

ServerApp

type ServerAppT m = PendingConnection -> m () Source #

A type synonym for a websockets ServerApp which has been lifted from the IO monad.

ClientApp

type ClientAppT m a = Connection -> m a Source #

A type synonym for a websockets ClientApp which has been lifted from the IO monad.

liftClientApp :: MonadBase IO m => ClientApp a -> ClientAppT m a Source #

Lift a websockets ClientApp to a ClientAppT.

runClientAppT :: MonadBaseControlIdentity IO m => ClientAppT m a -> m (ClientApp a) Source #

Run a ClientAppT in the inner monad.

WebSocket