Skip to main content

Module server

Module server 

Source
Expand description

HTTP and WebSocket transport of the GraphQL layer.

Connections have threads; requests run on the serving thread through a channel, as in crate::protocol, so the store needs no locks. After each write every subscription runs again, and is sent if its answer changed. WebSocket speaks the subprotocols graphql-ws (subscriptions-transport-ws, which DeepClient uses) and graphql-transport-ws (the graphql-ws library).

Structsยง

GraphqlServer
GraphqlShutdown
Stops a running GraphqlServer::serve from another thread.