Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type ServerAppT m = PendingConnection -> m ()
- liftServerApp :: MonadIO m => ServerApp -> ServerAppT m
- runServerAppT :: MonadUnliftIO m => ServerAppT m -> m ServerApp
- type ClientAppT m a = Connection -> m a
- liftClientApp :: MonadIO m => ClientApp a -> ClientAppT m a
- runClientAppT :: MonadUnliftIO m => ClientAppT m a -> m (ClientApp a)
- websocketsOrT :: MonadUnliftIO m => ConnectionOptions -> ServerAppT m -> MiddlewareT m
ServerApp
type ServerAppT m = PendingConnection -> m () Source #
liftServerApp :: MonadIO m => ServerApp -> ServerAppT m Source #
Lift a websockets ServerApp
to a ServerAppT
.
runServerAppT :: MonadUnliftIO m => ServerAppT m -> m ServerApp Source #
Run a ServerAppT
in the inner monad.
ClientApp
type ClientAppT m a = Connection -> m a Source #
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
websocketsOrT :: MonadUnliftIO m => ConnectionOptions -> ServerAppT m -> MiddlewareT m Source #
Upgrade a ServerAppT
to a MiddlewareT
.
This function is based on websocketsOr
.