SubscriptionWsProtocol

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

Deprecated

Migrate your server to GraphQLWsProtocol instead

A WsProtocol for https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md

Note: This protocol is no longer actively maintained, and GraphQLWsProtocol should be favored instead.

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?