emitTo
emitTo<
T>(target,event,payload?):Promise<void>
Defined in: event.ts:208
Emits an event to all targets matching the given target.
T
Label of the target Window/Webview/WebviewWindow or raw EventTarget object.
string | EventTarget
string
Event name. Must include only alphanumeric characters, -, /, : and _.
T
Event payload.
Promise<void>
import { emitTo } from '@tauri-apps/api/event';await emitTo('main', 'frontend-loaded', { loggedIn: true, token: 'authToken' });2.0.0
© 2025 Tauri Contributors. CC-BY / MIT