Safe Haskell | None |
---|---|
Language | Haskell2010 |
GraphQL Wai Server Applications
Synopsis
- gqlSocketApp :: GQLAPI -> GQLState -> ServerApp
- initGQLState :: IO GQLState
- type GQLState = MVar ClientRegister
- type GQLAPI = GQLRequest -> IO (OutputAction IO ByteString)
Documentation
gqlSocketApp :: GQLAPI -> GQLState -> ServerApp Source #
Wai Websocket Server App for GraphQL subscriptions
initGQLState :: IO GQLState Source #
initializes empty GraphQL state
type GQLState = MVar ClientRegister Source #
shared GraphQL state between websocket and http server, stores information about subscriptions
type GQLAPI = GQLRequest -> IO (OutputAction IO ByteString) Source #
statefull GraphQL interpreter