This commit is contained in:
2026-08-26 14:56:11 +02:00
parent f6cfea1621
commit c91a91643e
2 changed files with 13 additions and 3 deletions
+4
View File
@@ -1,3 +1,4 @@
import { invoke } from "@tauri-apps/api/core";
import { ClientMethod, ServerMethod } from "./protocol";
/**
@@ -15,6 +16,9 @@ export default class EnclaveWebSocket {
this.onOpenQueue = new Array();
this.websocket = new WebSocket(hostname);
this.websocket.onclose = () => {
invoke("disconnect_from_vc");
};
this.websocket.onopen = () => {
this.onOpenQueue.forEach((fun) => fun());
};