graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.GraphQL.Transport.WebSocket.Protocol

Description

This file contains types for both the websocket protocols (Apollo) and (graphql-ws) | See Apollo: https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md | See graphql-ws: https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md

Synopsis

Documentation

data ConnParams Source #

Instances

Instances details
FromJSON ConnParams Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

ToJSON ConnParams Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Generic ConnParams Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Associated Types

type Rep ConnParams :: Type -> Type #

Show ConnParams Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Eq ConnParams Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

type Rep ConnParams Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

type Rep ConnParams = D1 ('MetaData "ConnParams" "Hasura.GraphQL.Transport.WebSocket.Protocol" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ConnParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "_cpHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))

data StartMsg Source #

Instances

Instances details
FromJSON StartMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

ToJSON StartMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Generic StartMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Associated Types

type Rep StartMsg :: Type -> Type #

Methods

from :: StartMsg -> Rep StartMsg x #

to :: Rep StartMsg x -> StartMsg #

Show StartMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Eq StartMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

type Rep StartMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

type Rep StartMsg = D1 ('MetaData "StartMsg" "Hasura.GraphQL.Transport.WebSocket.Protocol" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "StartMsg" 'PrefixI 'True) (S1 ('MetaSel ('Just "_smId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OperationId) :*: S1 ('MetaSel ('Just "_smPayload") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GQLReqUnparsed)))

data StopMsg Source #

Constructors

StopMsg OperationId 

Instances

Instances details
FromJSON StopMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

ToJSON StopMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Generic StopMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Associated Types

type Rep StopMsg :: Type -> Type #

Methods

from :: StopMsg -> Rep StopMsg x #

to :: Rep StopMsg x -> StopMsg #

Show StopMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Eq StopMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Methods

(==) :: StopMsg -> StopMsg -> Bool #

(/=) :: StopMsg -> StopMsg -> Bool #

type Rep StopMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

type Rep StopMsg = D1 ('MetaData "StopMsg" "Hasura.GraphQL.Transport.WebSocket.Protocol" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "StopMsg" 'PrefixI 'True) (S1 ('MetaSel ('Just "_stId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 OperationId)))

data PingPongPayload Source #

Instances

Instances details
FromJSON PingPongPayload Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

ToJSON PingPongPayload Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Generic PingPongPayload Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Associated Types

type Rep PingPongPayload :: Type -> Type #

Show PingPongPayload Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Eq PingPongPayload Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

type Rep PingPongPayload Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

type Rep PingPongPayload = D1 ('MetaData "PingPongPayload" "Hasura.GraphQL.Transport.WebSocket.Protocol" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "PingPongPayload" 'PrefixI 'True) (S1 ('MetaSel ('Just "_smMessage") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Text))))

data ErrorMsg Source #

Constructors

ErrorMsg !OperationId !Encoding 

Instances

Instances details
Show ErrorMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

Eq ErrorMsg Source # 
Instance details

Defined in Hasura.GraphQL.Transport.WebSocket.Protocol

data ServerErrorCode Source #

This is sent from the server to the client while closing the websocket on encountering an error.

getNewWSTimer :: Seconds -> IO WSConnInitTimer Source #