okHttpClient

fun ApolloClient.Builder.okHttpClient(okHttpClient: ERROR CLASS: Symbol not found for OkHttpClient): ERROR CLASS: Unresolved name: apply

Configures the ApolloClient to use the OkHttpClient for network requests. The OkHttpClient will be used for both HTTP and WebSocket requests.

See also ApolloClient.Builder.httpEngine and ApolloClient.Builder.webSocketEngine


fun HttpNetworkTransport.Builder.okHttpClient(okHttpClient: ERROR CLASS: Symbol not found for OkHttpClient): ERROR CLASS: Unresolved name: apply

Configures the HttpNetworkTransport to use the DefaultHttpEngine for network requests.


fun WebSocketNetworkTransport.Builder.okHttpClient(okHttpClient: ERROR CLASS: Symbol not found for OkHttpClient): ERROR CLASS: Unresolved name: apply

Deprecated

The websocket implementation has moved to 'com.apollographql.apollo.network.websocket'. See https://go.apollo.dev/ak-v5-websockets for more details.

Configures the DeprecatedWebSocketNetworkTransport to use the okHttpCallFactory for network requests.