Skip to main content

Module protocol

Module protocol 

Source
Expand description

WebSocket protocol negotiation for GraphQL subscriptions.

Supports both the modern graphql-transport-ws protocol and the legacy graphql-ws (Apollo subscriptions-transport-ws) protocol. Messages are translated to/from a unified internal representation using ClientMessage / ServerMessage from fraiseql-core.

Structs§

ProtocolCodec
Codec that translates between wire-format messages and the unified internal ClientMessage / ServerMessage types.

Enums§

ProtocolError
Protocol-level errors.
WsProtocol
Supported WebSocket sub-protocols for GraphQL subscriptions.