extends KeetRoom
## Test double for gate_home_button: answers home.get from `home_result` and
## records calls instead of talking to a daemon.
var home_calls := 0
## What get_home hands back: {roomId, created} on success, or {error: "..."}.
var home_result: Dictionary = {}
var members_asked: Array[String] = []
func get_home(callback: Callable = Callable()) -> void:
home_calls += 1
if callback.is_valid():
callback.call(home_result)
func list_members(room_id: String, _callback: Callable = Callable()) -> void:
members_asked.append(room_id)