Chat Room
fun ChatRoom( regionOrUrl: String, tokenProvider: (ChatTokenCallback) -> Unit, maxReconnectAttempts: Int = 3, id: String = UUID.randomUUID().toString())
Content copied to clipboard
Constructs a new ChatRoom instance
Parameters
region Or Url
AWS region name (e.g. "us-west-2") or web socket URL starting with "wss://" or "ws://"
token Provider
Callback method called when ChatRoom requires a fresh IVS chat token
max Reconnect Attempts
Number of times the room will automatically retry web socket connection in case of connection failures