import { client, navigateTo } from "../index.js"; import AbstractView from "./AbstractView.js"; function game_found(game_id) { navigateTo(`/games/${game_id}`) } export default class extends AbstractView { constructor(params) { super(params, "Dashboard"); } async postInit() { await client.matchmaking.start(game_found) } async getHtml() { return `

finding

`; } async leavePage() { await client.matchmaking.stop(); } }