NetworkTransport

interface NetworkTransport

Functions

Link copied to clipboard
abstract fun dispose()
Link copied to clipboard
abstract fun <D : Operation.Data> execute(request: ApolloRequest<D>): Flow<ApolloResponse<D>>

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
fun NetworkTransport.closeConnection(reason: Throwable)

A shorthand for WebSocketNetworkTransport.closeConnection. If the NetworkTransport is not a WebSocketNetworkTransport, a NotImplementedError is thrown.