ChatRoom

fun ChatRoom(    regionOrUrl: String,     tokenProvider: (ChatTokenCallback) -> Unit,     maxReconnectAttempts: Int = 3,     id: String = UUID.randomUUID().toString())

Constructs a new ChatRoom instance

Parameters

regionOrUrl

AWS region name (e.g. "us-west-2") or web socket URL starting with "wss://" or "ws://"

tokenProvider

Callback method called when ChatRoom requires a fresh IVS chat token

maxReconnectAttempts

Number of times the room will automatically retry web socket connection in case of connection failures