SubscriptionWsProtocolAdapter
open class SubscriptionWsProtocolAdapter(webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener) : WsProtocol
Content copied to clipboard
Constructors
Link copied to clipboard
fun SubscriptionWsProtocolAdapter(webSocketConnection: WebSocketConnection, listener: WsProtocol.Listener)
Content copied to clipboard
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
open override fun <D : Operation.Data> startOperation(request: ApolloRequest<D>)
Content copied to clipboard
Starts the given operation
Link copied to clipboard
open override fun <D : Operation.Data> stopOperation(request: ApolloRequest<D>)
Content copied to clipboard
Stops the given operation