webSocketIdleTimeoutMillis

fun webSocketIdleTimeoutMillis(webSocketIdleTimeoutMillis: Long): ApolloClient.Builder

The timeout after which an inactive WebSocket will be closed

See also subscriptionNetworkTransport for more customization