Skip to main content

Module protocol

Module protocol 

Source
Expand description

GraphQL over WebSocket subscription protocol types.

Implements the graphql-ws protocol (v5+) message framing for client-to-server and server-to-client subscription communication.

Structs§

ClientMessage
Client message (from WebSocket client).
ErrorLocation
Location in a GraphQL document (source text) where an error occurred.
GraphQLError
A GraphQL protocol-level error as defined in the GraphQL specification §7.1.2.
ServerMessage
Server message (to WebSocket client).
SubscribePayload
Subscribe message payload.

Enums§

ClientMessageType
Client-to-server message types.
CloseCode
Close codes for WebSocket connection.
ServerMessageType
Server-to-client message types.