KeepAliveCoroutine

class KeepAliveCoroutine(val graphQLConfig: GraphQLConfig, val channel: Channel<OperationMessage<*>>, val message: OperationMessage<*>) : GraphQLCoroutine

Coroutine that sends a keepalive ping over the websocket every GraphQLConfig.keepAliveIntervalSeconds seconds until it gets canceled by its parent

Constructors

Link copied to clipboard
constructor(graphQLConfig: GraphQLConfig, channel: Channel<OperationMessage<*>>, message: OperationMessage<*>)

Properties

Link copied to clipboard
private val channel: Channel<OperationMessage<*>>
Link copied to clipboard
Link copied to clipboard
private val message: OperationMessage<*>

Functions

Link copied to clipboard
suspend fun queueMessage(message: OperationMessage<*>)

Send the message to the channel to be processed in the main coroutine

Link copied to clipboard
open suspend override fun run()