webtau API
    Preparing search index...

    Function invoke

    • Universal invoke — same API as @tauri-apps/api/core's invoke().

      In Tauri mode: delegates to Tauri IPC. In web mode: calls the matching WASM export, passing the args object as a single parameter.

      const view = await invoke<WorldView>("get_world_view");
      const result = await invoke<TickResult>("tick_world");

      Type Parameters

      • T = unknown

      Parameters

      • command: string
      • Optionalargs: Record<string, unknown>

      Returns Promise<T>