listening-to-tauri-events
Installation
SKILL.md
Listening to Tauri Events in the Frontend
This skill covers how to subscribe to events emitted from Rust in a Tauri v2 application using the @tauri-apps/api/event module.
Core Concepts
Tauri provides two event scopes:
- Global events - Broadcast to all listeners across all webviews
- Webview-specific events - Targeted to specific webview windows
Important: Webview-specific events are NOT received by global listeners. Use the appropriate listener type based on how events are emitted from Rust.
Installation
The event API is part of the core Tauri API package: