Module juniper_graphql_ws::graphql_ws
source · Available on crate feature
graphql-ws
only.Expand description
Implementation of the legacy graphql-ws
GraphQL over WebSocket Protocol, as formerly
used by Apollo and subscriptions-transport-ws
npm package.
It has now been deprecated in favor of the
new graphql-transport-ws
GraphQL over WebSocket Protocol, implemented by the
graphql_transport_ws
module and new graphql-ws
npm package.
Structs§
- Implements the graphql-ws protocol. This is a sink for
TryInto<ClientMessage>
and a stream ofServerMessage
. - The payload for errors that are not associated with a GraphQL operation.
- Sent after execution of an operation. For queries and mutations, this is sent to the client once. For subscriptions, this is sent for every event in the event stream.
- Payload for errors that can happen before execution.
- The payload for a client’s “start” message. This triggers execution of a query, mutation, or subscription.
Enums§
- ClientMessage defines the message types that clients can send.
- ServerMessage defines the message types that servers can send.