ChatClient

fun ChatClient(realtimeClient: AblyRealtime, clientOptions: ChatClientOptions = buildChatClientOptions()): ChatClient

Return

ChatClient with the specified options

Parameters

realtimeClient

The Ably Realtime client

clientOptions

The client options.


fun ChatClient(realtimeClient: AblyRealtime, init: MutableChatClientOptions.() -> Unit): ChatClient

Return

ChatClient with the specified options

Parameters

realtimeClient

The Ably Realtime client

init

Kotlin type-safe builder for client options