wai-control-0.2.0.0: Run wai Applications in IO based monads
Safe HaskellNone
LanguageHaskell2010

Network.Wai.Handler.WebSockets.Trans

Synopsis

ServerApp

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

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

runServerAppT :: MonadUnliftIO m => ServerAppT m -> m ServerApp Source #

Run a ServerAppT in the inner 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 :: MonadIO m => ClientApp a -> ClientAppT m a Source #

Lift a websockets ClientApp to a ClientAppT.

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

Run a ClientAppT in the inner monad.

WebSocket