Versions in this module Expand all Collapse all v2 v2.1.0 Apr 30, 2026 Changes in this version + var ErrConnectionClosed = errors.New("connection closed") + type ExecutionResult struct + Data json.RawMessage + Errors json.RawMessage + Extensions json.RawMessage + type Handler func(msg *Message) + type Message struct + Err error + Payload *ExecutionResult + Type MessageType + type MessageType uint8 + const MessageTypeComplete + const MessageTypeConnectionError + const MessageTypeData + const MessageTypeError + const MessageTypeUnknown + func (t MessageType) IsTerminal() bool + type Options struct + Endpoint string + Headers http.Header + InitPayload map[string]any + SSEMethod SSEMethod + Transport TransportType + WSSubprotocol WSSubprotocol + type Request struct + Extensions json.RawMessage + OperationName string + Query string + Variables json.RawMessage + type SSEMethod string + const SSEMethodGET + const SSEMethodPOST + type TransportType string + const TransportSSE + const TransportWS + type WSSubprotocol string + const SubprotocolAuto + const SubprotocolGraphQLTransportWS + const SubprotocolGraphQLWS + func (s WSSubprotocol) Subprotocols() []string