createChatClient

fun createChatClient(pubsubClient: <Error class: unknown class>, clientOptions: ChatClientOptions = buildChatClientOptions()): ChatClient

Return

ChatClient with the specified options

Parameters

pubsubClient

The Ably Pub/Sub realtime client

clientOptions

The client options.


fun createChatClient(pubsubClient: <Error class: unknown class>, init: MutableChatClientOptions.() -> Unit): ChatClient

Return

ChatClient with the specified options

Parameters

pubsubClient

The Ably Pub/Sub realtime client

init

Kotlin type-safe builder for client options