Expand description
§juniper_graphql_ws crate
This crate contains implementations of 2 protocols:
-
(
graphql-transport-wsfeature) The newgraphql-transport-wsGraphQL over WebSocket Protocol, as now used by Apollo andgraphql-wsnpm package. -
(
graphql-wsfeature) The legacygraphql-wsGraphQL over WebSocket Protocol, as formerly used by Apollo andsubscriptions-transport-wsnpm package (deprecated in favor of the newgraphql-transport-wsGraphQL over WebSocket Protocol mentioned above).
§License
This project is licensed under BSD 2-Clause License.
Modules§
- graphql_
transport_ ws graphql-transport-ws - Implementation of the new
graphql-transport-wsGraphQL over WebSocket Protocol, as now used by Apollo andgraphql-wsnpm package. - graphql_
ws graphql-ws - Implementation of the legacy
graphql-wsGraphQL over WebSocket Protocol, as formerly used by Apollo andsubscriptions-transport-wsnpm package.
Structs§
- Connection
Config - ConnectionConfig is used to configure the connection once the client sends the ConnectionInit message.
Traits§
- Init
- Init defines the requirements for types that can provide connection configurations when
ConnectionInit messages are received. Implementations are provided for
ConnectionConfigand closures that meet the requirements. - Schema
- Schema defines the requirements for schemas that can be used for operations. Typically this is
just an
Arc<RootNode<...>>and you should not have to implement it yourself.