okHttpClient

fun okHttpClient(okHttpClient: OkHttpClient): ChatClient.Builder

Sets a custom OkHttpClient that will be used by the client to perform API calls to Stream.

Use this to configure parameters like timeout values, or to add interceptors to process all network requests.

Parameters

okHttpClient

The client to use for API calls.