switch to invokes instead of emits

This commit is contained in:
Joseph Montanaro committed 2022-12-13 16:50:44 -08:00
1 parent 48269855e5
commit 9055fa41aa
11 files changed
+91 -40

No files matched your search

+5 -1
View File
@@ -21,7 +21,11 @@ fn main() {
tauri::Builder::default()
.manage(initial_state)
.invoke_handler(tauri::generate_handler![ipc::unlock, ipc::respond])
.invoke_handler(tauri::generate_handler![
ipc::unlock,
ipc::respond,
ipc::get_session_status,
])
.setup(|app| {
let addr = std::net::SocketAddrV4::from_str("127.0.0.1:12345").unwrap();
tauri::async_runtime::spawn(server::serve(addr, app.handle()));