GraphQLWsProtocol
An WsProtocol that uses https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md It can carry queries in addition to subscriptions over the websocket
Constructors
Link copied to clipboard
constructor(connectionPayload: suspend () -> Map<String, Any?>? = { null }, pingPayload: Map<String, Any?>? = null, pongPayload: Map<String, Any?>? = null, connectionAcknowledgeTimeoutMs: Long, pingIntervalMillis: Long, frameType: WsFrameType, webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener, scope: CoroutineScope)
Types
Link copied to clipboard
A factory for GraphQLWsProtocol.
Functions
Link copied to clipboard
Closes the connection gracefully. It is expected that a future call to WsProtocol.Listener.networkError is made
Link copied to clipboard
Initializes the connection and suspends until the server acknowledges it.
Link copied to clipboard
Handles a server message and notifies listener appropriately
Link copied to clipboard
Starts the given operation
Link copied to clipboard
Stops the given operation