AppSyncWsProtocol
class AppSyncWsProtocol(connectionAcknowledgeTimeoutMs: Long, connectionPayload: suspend () -> Map<String, Any?>? = { null }, webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener) : WsProtocol
Deprecated
The websocket implementation has moved to 'com.apollographql.apollo.network.websocket'. See https://go.apollo.dev/ak-v5-websockets for more details.
A WsProtocol for https://docs.aws.amazon.com/appsync/latest/devguide/real-time-websocket-client.html
Constructors
Link copied to clipboard
constructor(connectionAcknowledgeTimeoutMs: Long, connectionPayload: suspend () -> Map<String, Any?>? = { null }, webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener)
constructor(authorization: Map<String, Any?>, connectionAcknowledgeTimeoutMs: Long, webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener)
Types
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