Package-level declarations
Types
Base class for child coroutines of the GraphQLWebSocketConsumer. Allows for sending messages back to the main coroutine channel for doing things like sending messages back to the WebSocket client
WebSocketAdapter implementation that bridges incoming WebSocket events into a coroutine Channel to be handled by a consumer, and provides access to the remote for sending messages to the client.
Enum of websocket closure reasons from the graphql-ws protocol specification
Coroutine based consumer that listens for events on coming from the WebSocket managed by a GraphQLWebSocketAdapter, and implements the apollo graphql-ws protocol from https://github.com/apollographql/subscriptions-transport-ws/blob/HEAD/PROTOCOL.md
WebSocketCreator that creates a GraphQLWebSocketAdapter, a Channel that gets sent WebSocket API events, and a GraphQLWebSocketConsumer to consume that channel.
A GraphQLWebSocketAuthenticator that delegates authentication to a Dropwizard AuthFilter from the Guice injector.
Encapsulates the different behaviors in the apollo vs/ graphql-ws protocols. Maps equivalent messages (eg "start" vs "subscribe"), and provides callbacks for different behaviors (eg end an "error" message vs/ close the connection).
Coroutine that sends a keepalive ping over the websocket every GraphQLConfig.keepAliveIntervalSeconds seconds until it gets canceled by its parent
Model for a message in the graphql websocket protocol. Supports messages for either the apollo or graphql-ws protocols
Coroutine that runs a GraphQL query and emits data messages to be sent back to the WebSocket client. On completion of the query will send a GQL_COMPLETE message back. On any error will send a GQL_ERROR.
Functions
Extension method to close the WebSocket session using a GraphQLWebSocketCloseReason instead of code/description pairs