@kuyoonjo/tauri-plugin-udp
v0.1.1
Published
## Install
Downloads
190
Readme
tauri-plugin-udp
Install
cargo add tauri-plugin-udp
tauri::Builder::default()
.plugin(tauri_plugin_udp::init())
...
Usage
import { bind, send } from "@kuyoonjo/tauri-plugin-udp";
import { listen } from "@tauri-apps/api/event";
const id = 'unique-id';
await bind(id, '0.0.0.0:8080');
await send(id, '192.168.1.2:9090', 'hello');
await unbind(id);
await listen("plugin://udp", (x) => console.log(x.payload));
Support
| MacOS | Linux | Windows | | ----- | ----- | ------- | | ✅ | ✅ | ✅ |