getValue

suspend fun getValue(key: String): String?

Reads the current value for the given key.

Return

the value, or null when the server returns none

Parameters

key

the key to read

Throws

3035 / 3065 outside the room, 4046 when the server refuses (including a key that was never set or was cleared), 3079 on timeout. The last two also reach RoomEventListener.onError