Package-level declarations

Types

Link copied to clipboard
class AppSyncWsProtocol(connectionAcknowledgeTimeoutMs: Long, connectionPayload: suspend () -> Map<String, Any?>? = { null }, webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener) : WsProtocol

A WsProtocol for https://docs.aws.amazon.com/appsync/latest/devguide/real-time-websocket-client.html

Link copied to clipboard

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

Link copied to clipboard
typealias NSWebSocketFactory = (NSURLRequest, WebSocketConnectionListener) -> NSURLSessionWebSocketTask
Link copied to clipboard
class SubscriptionWsProtocol @JvmOverloads constructor(webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener, connectionAcknowledgeTimeoutMs: Long, connectionPayload: suspend () -> Map<String, Any?>? = { null }, frameType: WsFrameType = WsFrameType.Text) : WsProtocol

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface WebSocketEngine

The low-level WebSocket API. Implement this interface to customize how WebSockets are handled

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class WsProtocol(webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener)

A WsProtocol is responsible for handling the details of the WebSocket protocol.

Properties

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

Functions

Link copied to clipboard

Closes the websocket connection if the transport is a WebSocketNetworkTransport.