mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-05-29 13:31:27 +02:00
feat: update setup hook to new syntax (#257)
This commit is contained in:
committed by
GitHub
parent
738636472c
commit
22f987bf24
@@ -163,7 +163,7 @@ async fn send(
|
||||
pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
||||
PluginBuilder::new("websocket")
|
||||
.invoke_handler(tauri::generate_handler![connect, send])
|
||||
.setup(|app| {
|
||||
.setup(|app, _api| {
|
||||
app.manage(ConnectionManager::default());
|
||||
Ok(())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user