From da286e82d2054f142cd1a6050a37df07336a3e3c Mon Sep 17 00:00:00 2001 From: RubenPX Date: Thu, 7 Mar 2024 09:29:37 +0100 Subject: [PATCH] Update README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 7482e60..440aa69 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,22 @@ This dll can talk with NetHostFX apps - [X] Invoke from Tauri to NetHostFX - [ ] Allow Tauri pass to C# String parameters - [ ] Allow to send & parse JSON Data betwen processes + +## Extra + +You can replace frontend as you want + +To invoke NetHost code, you need install tauri API and run this code + +```javascript +import { invoke } from "@tauri-apps/api/tauri" + +let name = ""; +let greetMsg = "" + +async function greet(){ + // Learn more about Tauri commands at https://tauri.app/v1/guides/features/command + greetMsg = await invoke("greet", { name }) +} +``` +