graphql_ws library
An implementation of the graphql-transport-ws protocol in Dart.
The protocol the graphql-ws library defines, which is what a current
Apollo Client or urql speaks by default. For the older Apollo protocol, see
subscriptions_transport_ws.dart; the two can be served side by side, and
the Sec-WebSocket-Protocol header of the handshake says which one a
client is asking for.
See: https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md
Classes
- GraphQLResult
- What a subscription server answers for one operation: the data, and any errors.
- GraphQLWsClient
- One connected client, seen as a channel of GraphQLWsMessages.
- GraphQLWsCloseCode
- The close codes the protocol names.
- GraphQLWsMessage
-
One message of the
graphql-transport-wsprotocol. - GraphQLWsServer
-
A server speaking the
graphql-transport-wsprotocol.