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.
Modules§
- graphql_
transport_ ws graphql-transport-ws
- Implementation of the new
graphql-transport-ws
GraphQL over WebSocket Protocol, as now used by Apollo andgraphql-ws
npm package. - graphql_
ws graphql-ws
- Implementation of the legacy
graphql-ws
GraphQL over WebSocket Protocol, as formerly used by Apollo andsubscriptions-transport-ws
npm 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
ConnectionConfig
and 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.