GraphQLWsProtocol

class GraphQLWsProtocol(val connectionPayload: suspend () -> Any? = { null }) : WsProtocol

An WsProtocol for https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md

GraphQLWsProtocol can execute queries and mutations in addition to subscriptions

Constructors

Link copied to clipboard
constructor(connectionPayload: suspend () -> Any? = { null })

Properties

Link copied to clipboard
val connectionPayload: suspend () -> Any?
Link copied to clipboard
open override val name: String

Functions

Link copied to clipboard
open suspend override fun connectionInit(): ClientMessage
Link copied to clipboard
open suspend override fun <D : Operation.Data> operationStart(request: ApolloRequest<D>): ClientMessage
Link copied to clipboard
open override fun <D : Operation.Data> operationStop(request: ApolloRequest<D>): ClientMessage
Link copied to clipboard
open override fun parseServerMessage(text: String): ServerMessage
Link copied to clipboard
open override fun ping(): ClientMessage
Link copied to clipboard
open override fun pong(): ClientMessage