Server list

This commit is contained in:
2026-08-18 14:29:55 +02:00
parent 15a2836043
commit f115a86291
3 changed files with 73 additions and 6 deletions
+17
View File
@@ -0,0 +1,17 @@
import { invoke } from "@tauri-apps/api/core";
type KnownServer = {
name: string;
description: string;
publicKey: string;
hostname: string;
isWss: boolean;
};
export async function saveServerList(servers: KnownServer[]): Promise<void> {
await invoke("save_server_list", { servers });
}
export async function getServerList(): Promise<KnownServer[]> {
return await invoke("get_server_list");
}