Crate juniper_graphql_ws
source ·Expand description
§juniper_graphql_ws
crate
This crate contains implementations of 2 protocols:
-
(
graphql-transport-ws
feature) The newgraphql-transport-ws
GraphQL over WebSocket Protocol, as now used by Apollo andgraphql-ws
npm package. -
(
graphql-ws
feature) The legacygraphql-ws
GraphQL over WebSocket Protocol, as formerly used by Apollo andsubscriptions-transport-ws
npm package (deprecated in favor of the newgraphql-transport-ws
GraphQL over WebSocket Protocol mentioned above).
§License
This project is licensed under BSD 2-Clause License.
Re-exports§
pub use self::schema::ArcSchema;
Modules§
- graphql_transport_ws
graphql-transport-ws
Implementation of the newgraphql-transport-ws
GraphQL over WebSocket Protocol, as now used by Apollo andgraphql-ws
npm package. - graphql_ws
graphql-ws
Implementation of the legacygraphql-ws
GraphQL over WebSocket Protocol, as formerly used by Apollo andsubscriptions-transport-ws
npm package.
Structs§
- ConnectionConfig is used to configure the connection once the client sends the ConnectionInit message.
Traits§
- Init defines the requirements for types that can provide connection configurations when ConnectionInit messages are received. Implementations are provided for
ConnectionConfig
and closures that meet the requirements. - 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.