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