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 }) +} +``` +