Package com.apollographql.apollo3.network.ws

Types

AppSyncWsProtocol
Link copied to clipboard
common
class AppSyncWsProtocol(authorization: Map<String, Any?>, connectionAcknowledgeTimeoutMs: Long, webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener) : WsProtocol
A WsProtocol for https://docs.aws.amazon.com/appsync/latest/devguide/real-time-websocket-client.
DefaultWebSocketEngine
Link copied to clipboard
common
class DefaultWebSocketEngine : WebSocketEngine
GraphQLWsProtocol
Link copied to clipboard
common
class GraphQLWsProtocol(connectionPayload: Map<String, Any?>?, pingPayload: Map<String, Any?>?, pongPayload: Map<String, Any?>?, connectionAcknowledgeTimeoutMs: Long, pingIntervalMillis: Long, frameType: WsFrameType, webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener, scope: CoroutineScope) : WsProtocol
An WsProtocol that uses https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.
NSWebSocketFactory
Link copied to clipboard
apple
typealias NSWebSocketFactory = (NSURLRequest, WebSocketConnectionListener) -> NSURLSessionWebSocketTask
SubscriptionWsProtocol
Link copied to clipboard
common
class SubscriptionWsProtocol(webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener, connectionAcknowledgeTimeoutMs: Long, connectionPayload: suspend () -> Map<String, Any?>?) : WsProtocol
A WsProtocol for https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.
SubscriptionWsProtocolAdapter
Link copied to clipboard
common
open class SubscriptionWsProtocolAdapter(webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener) : WsProtocol
WebSocketConnection
Link copied to clipboard
common
interface WebSocketConnection
WebSocketConnectionListener
Link copied to clipboard
apple
interface WebSocketConnectionListener
WebSocketEngine
Link copied to clipboard
common
interface WebSocketEngine
The low-level WebSocket API.
WebSocketNetworkTransport
Link copied to clipboard
common
class WebSocketNetworkTransport : NetworkTransport
A NetworkTransport that works with WebSockets.
WsFrameType
Link copied to clipboard
common
enum WsFrameType : Enum<WsFrameType>
WsProtocol
Link copied to clipboard
common
abstract class WsProtocol(webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener)
A WsProtocol is responsible for handling the details of the WebSocket protocol.

Properties

CLOSE_GOING_AWAY
Link copied to clipboard
common
const val CLOSE_GOING_AWAY: Int = 1001
CLOSE_NORMAL
Link copied to clipboard
common
const val CLOSE_NORMAL: Int = 1000